summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2019-11-13 15:38:28 -0800
committerTony Wickham <twickham@google.com>2019-11-20 18:05:06 +0000
commit09c09bba1e8e06d805eb450b21bd16223dfc2036 (patch)
treed23ee6f1cc4947f8e19187340c3659a996c34372 /src
parentec72bf63dfde4736389ffc7ae5a0ab4d3be0653a (diff)
downloadandroid_packages_apps_Trebuchet-09c09bba1e8e06d805eb450b21bd16223dfc2036.tar.gz
android_packages_apps_Trebuchet-09c09bba1e8e06d805eb450b21bd16223dfc2036.tar.bz2
android_packages_apps_Trebuchet-09c09bba1e8e06d805eb450b21bd16223dfc2036.zip
Fix recents scale sometimes lagging behind window scale
We were previously offsetting the launcher animation progress based on when we got onGestureStart, which meant it would lag behind if onGestureStart came late. Now that we track the window instead of the launcher shelf, and we don't show the launcher animation right away in fully gestural mode anyway, we should remove this to ensure the launcher part of the animation always lines up with the app window. We also reapply state whenever predictions are enabled, e.g. when launcher starts after being force stopped, and previously this was canceling the existing state animation. We don't want to do that because predictions can be enabled at any point on a cold start, and cancelling the existing state animation means that RecentsView shows up in fullscreen and not attached to the app window for the duration of the gesture. Bug: 144454486 Change-Id: I65a2c71c9acd2f5345941ea2cff7d32c04b7be3f Merged-In: I65a2c71c9acd2f5345941ea2cff7d32c04b7be3f
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/Launcher.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 7bb618ddf..9bf690f13 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -445,12 +445,16 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
@Override
public void reapplyUi() {
+ reapplyUi(true /* cancelCurrentAnimation */);
+ }
+
+ public void reapplyUi(boolean cancelCurrentAnimation) {
if (supportsFakeLandscapeUI()) {
mRotationMode = mStableDeviceProfile == null
? RotationMode.NORMAL : UiFactory.getRotationMode(mDeviceProfile);
}
getRootView().dispatchInsets();
- getStateManager().reapplyState(true /* cancelCurrentAnimation */);
+ getStateManager().reapplyState(cancelCurrentAnimation);
}
@Override