summaryrefslogtreecommitdiffstats
path: root/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2019-05-06 14:45:59 -0700
committerTony Wickham <twickham@google.com>2019-05-06 14:45:59 -0700
commit0c947f97703b90a1cd9c5a20cdd316fa9e305d1d (patch)
tree6cd15eb3b25baa2160178b43461d30c8182d2d40 /quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java
parent752df2ce3b04f016c4078220f6375cf20cbb2beb (diff)
downloadandroid_packages_apps_Trebuchet-0c947f97703b90a1cd9c5a20cdd316fa9e305d1d.tar.gz
android_packages_apps_Trebuchet-0c947f97703b90a1cd9c5a20cdd316fa9e305d1d.tar.bz2
android_packages_apps_Trebuchet-0c947f97703b90a1cd9c5a20cdd316fa9e305d1d.zip
Update sysui flags
- Launcher always controlls sysui flags during quickstep gestures. - If we passed window threshold (i.e. window isn't under system bars), use same flags as home screen - Else use sysui flags of the centermost TaskView - Update sysui flags based on home animation progress as well (otherwise we weren't applying home screen sysui flags until the end of the animation if you ended the swipe before crossing the window threshold). - Update sysui flags for quick switch from home - Specify that the activity controller animation is user-controlled so we don't reapply state when re-setting it. This happens when we get window insets, for instance, which we get when changing sysui flags. Bug: 131360249 Bug: 130020567 Change-Id: If82dbf75fe663fd690b816cdc1c4366cc2bf75b1
Diffstat (limited to 'quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java')
-rw-r--r--quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java
index 50f25fbf1..e932452ed 100644
--- a/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java
+++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java
@@ -270,9 +270,9 @@ public final class LauncherActivityControllerHelper implements ActivityControlHe
playScaleDownAnim(anim, activity, endState);
anim.setDuration(transitionLength * 2);
- activity.getStateManager().setCurrentAnimation(anim);
AnimatorPlaybackController controller =
AnimatorPlaybackController.wrap(anim, transitionLength * 2);
+ activity.getStateManager().setCurrentUserControlledAnimation(controller);
// Since we are changing the start position of the UI, reapply the state, at the end
controller.setEndAction(() -> {