Project: titanium
Issue TIMOB-20451: Window.close should use new activity*Transition instead of activity*Animation or default
With TIMOB-19580 we have introduced {{activity*Transition}} properties for {{Ti.UI.Window}}. We also still have {{activity*Animation}} properties for {{Ti.UI.Window.open()}} and {{Ti.UI.Window.close()}}. h4. The Issue This is confusing, but also seems to not always work as expected: If you try the _Activity Transitions_ example in the [Ti 5.2.0 Sample App|https://github.com/appcelerator-developer-relations/appc-sample-ti520] and set all {{activity*Transition}} properties to {{TRANSITION_NONE}} you will see that if you use the system navigation bar (or hardware) back button in Window B it will indeed close without animation. But if you use the Action Bar Level Up icon (which simply calls {{Ti.UI.Window.close()}}) it will fade out. h4. Solution We should: 1. Make sure that if I call {{Ti.UI.Window.close()}} without {{activityEnterAnimation}} and {{activityExitAnimation}}, it will honour {{Ti.UI.Window.activityReturnTransition}}. 2. Deprecate and in 6.0 remove the {{activity*Animation}} properties. h4. Source Related code: https://github.com/appcelerator/titanium_mobile/blob/a67afc862cd344bf1293b16142317aad0b5ee122/android/modules/ui/src/java/ti/modules/titanium/ui/WindowProxy.java#L135-L184
Story points: 3