Commit Graph

19 Commits

Author SHA1 Message Date
Jon Miranda
863e05556e Tweaks to synchronized app transitions.
* Animations appear snappier by using new interpolators
  ie. new EXAGGERATED_EASE and updated AGGRESSIVE_EASE_IN_OUT
* Updated app icon/window alpha to make the motion/synchronization clearer.

Bug: 70220260
Change-Id: Ib05efc7f58d53b070e58f682f30651e31f9b3524
2018-02-16 15:44:40 -08:00
Sunny Goyal
66f2b35320 Adding a utility class to simplify main process initialization.
Change-Id: I796cf758d2a25cf8fd5f9a9b78a7977fd54ca451
2018-02-13 17:08:09 -08:00
TreeHugger Robot
ba747b6f19 Merge "Skip Launcher opening animation if its not in the set of opening apps." into ub-launcher3-master 2018-02-13 01:50:09 +00:00
Winson Chung
3e803c7a4b Animate the visible task view if launching an app that resolves to the task
Test: Manual, launch app for associated visible task
Change-Id: I7a56553197ad23e1269eb50523eca0ea88898f47
2018-02-09 12:40:10 -08:00
TreeHugger Robot
7780fa7bc7 Merge "Prevent blinking when user presses home." into ub-launcher3-master 2018-02-08 03:48:56 +00:00
Jon Miranda
0d5daafd2f Prevent blinking when user presses home.
Intead of finishing the entire animation (launcher animation and
window animation), we finish just the launcher animation.

Bug: 73071035
Change-Id: Ied84cb641f3cedc367433ad99d21ab1b258ae7f8
2018-02-07 17:41:22 -08:00
Jon Miranda
ce29861598 Use DrawableFactory to get icons for animation.
* This ensures that the current time is used for the clock icon.
* Also switch from ImageView to View, to avoid an alpha bug.

Bug: 73000086
Change-Id: I6576d76b95fb157d0bfe8db4fda899e644773bfa
2018-02-07 17:37:24 -08:00
Tony
dc76f8e856 Cancel launcher app transition when changing states
The app transition might change an object that the new
state depends on, causing an inconsistent state.

Bug: 72816542
Change-Id: Ia6dd52971b52be5589c88f4f6d93d06146fbadab
2018-02-05 18:48:24 -08:00
Jon Miranda
39552b83b7 Skip Launcher opening animation if its not in the set of opening apps.
Bug: 72811741
Change-Id: I81d71fac9908c375052567cda43dffa92cd3d9f6
2018-02-05 14:10:36 -08:00
Sunny Goyal
fde5505d02 Handling configuration changes
> Adding a listener for device profile changes
> Updating various controllers instead of recreating them
> Clearing all-apps icon

Bug: 71709920
Change-Id: Ief7db199eb7494ebd8fb433198f333cd2e8e661d
2018-02-01 14:47:08 -08:00
Sunny Goyal
c94cfc052c Merge "Initial changes for handling configuration changes dynamically" into ub-launcher3-master 2018-02-01 21:35:10 +00:00
TreeHugger Robot
d0f20abec4 Merge "Fix a couple of issues with app close" into ub-launcher3-master 2018-02-01 18:18:53 +00:00
Jorim Jaggi
fc0f6a5c5a Fix a couple of issues with app close
- Make sure to use center pivot point
- Use correct curve for alpha
- No need for the layer hack anymore because framework issue
was fixed.
- End X should be 480dp for a 411dp device, so we need to scale
it with 1.16

Test: Close app
Change-Id: Ib4587e324aeeb11921de87da7c389b2e148dc913
Fixes: 72691044
2018-02-01 19:07:33 +01:00
Sunny Goyal
f8d56fc8a1 Initial changes for handling configuration changes dynamically
Bug: 71709920
Change-Id: I88cf2229dea28d01c13a5a76d2290e91b07d095e
2018-01-31 15:20:30 -08:00
TreeHugger Robot
260fec1b24 Merge changes Ib95f0c41,I5a1488aa into ub-launcher3-master
* changes:
  Start the recents window animation on touch down.
  Only keep running task id.
2018-01-31 17:22:03 +00:00
Winson Chung
7dde1c3b9b Start the recents window animation on touch down.
Change-Id: Ib95f0c41e2dc0e9274268e70da63b63e3092fc94
2018-01-31 09:09:15 -08:00
Jorim Jaggi
6674249107 Fix app closing transition in multi-window
Previously we attempted to disable the app closing transition
in multi-window. However, that didn't work because the registered
remote animation was still registered on the ActivityRecord, even
if the activity was restarted, leading to passing a null handler
into post, and then the animation never started.

Enable it in multi-window and also fix the transition.

Test: Enter multi-window, go home
Change-Id: I4d5d46688310b61365ba954fb41811efa29e41a5
Fixes: 72525431
2018-01-31 17:51:17 +01:00
Jorim Jaggi
d30e74b58c Fix parameter order
Test: Close app
Change-Id: Id476852a83e353d7651c011fcf9e532cfddc9112
Fixes: 72627528
2018-01-29 14:19:37 +01:00
Jon Miranda
54441f5df9 Refactor LauncherAppTransitionManager & polish for new app transitions.
* Add start delay when launcher resumes from all apps or landscape.
* Track the last app transition animator and cancel it before beginning a new one,
  otherwise the animators can conflict with each other.
  ie. Opening an app from all apps and then immediately pressing back to return to
      all apps.
* Use class overrride instead of UiFactory.

Bug: 70220260
Change-Id: I4755d45d820f9d551e443d6c4a148e8789c5bc57
2018-01-25 14:32:47 -08:00