Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27101

Android: Window open() wrongly does a shared-element fade-in animation by default as of 8.0.1

    Details

    • Story Points:
      5
    • Sprint:
      2019 Sprint 12

      Description

      Summary:
      As of Titanium 8.0.1, a Window.open() method call is opening with a fade-in animation instead of the system default animation (typically slides-up). What's happening is that the window is doing a "shared-element" animation instead, which is mostly intended to show a view moving from one window to another.

      This regression was caused by TIMOB-25678 which was intended to allow app developers to use the shared-element transition animation properties such as "activityEnterTransition" without having to set up any views as shared-elements via Window.addSharedElement(). This was meant to be more convenient to use than the Window.open() method's "activityEnterAnimation" and "activityExitAnimation" properties. The negative consequence of this change was that it was always defaulting to shared-element transition animations even if none of the transition properties were assigned.

      Steps to reproduce:

      1. Build and run the below code on Android.
      2. Tap on the "Open" button to open a child window.

      var windowCount = 0;
      function openWindow() {
      	windowCount++;
      	var window = Ti.UI.createWindow({
      		title: "Window " + windowCount,
      	});
      	var openButton = Ti.UI.createButton({ title: "Open" });
      	openButton.addEventListener("click", function() {
      		openWindow();
      		window.close();
      	});
      	window.add(openButton);
      	window.open();
      }
      openWindow();
      

      Result:
      After pressing the "Open" button, it looks like the app fades to the Android system's home screen and then the app's child window fades-in.

      Expected Result:
      Child window should open with a slide-in animation instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
                Reviewer:
                Gary Mathews
                Tester:
                Keerthi Mahalingam
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code