summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2018-05-28 18:08:40 +0200
committerJorim Jaggi <jjaggi@google.com>2018-05-28 18:08:40 +0200
commit1d1a3d7242d0c0e89c856d00e06bc3df7b55bc9d (patch)
treeb9c027a8898f09768e563338ff5b403c311e554c
parentc0928c3ba0786028875e174caf0c5e6a976e6fc4 (diff)
downloadandroid_packages_apps_Trebuchet-1d1a3d7242d0c0e89c856d00e06bc3df7b55bc9d.tar.gz
android_packages_apps_Trebuchet-1d1a3d7242d0c0e89c856d00e06bc3df7b55bc9d.tar.bz2
android_packages_apps_Trebuchet-1d1a3d7242d0c0e89c856d00e06bc3df7b55bc9d.zip
Fix binder call for app opening
Needs to acquire the AM/WM lock, which may cause jank during the animation. Test: Open app, observe no binder calls. Bug: 78611607 Change-Id: I3459383c9597801405dd9c688837a2bffeeb7f9e
-rw-r--r--quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java b/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java
index 6703bb546..3075c3f48 100644
--- a/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java
+++ b/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java
@@ -581,11 +581,8 @@ public class LauncherAppTransitionManagerImpl extends LauncherAppTransitionManag
float offsetX = (scaledWindowWidth - iconWidth) / 2;
float offsetY = (scaledWindowHeight - iconHeight) / 2;
- if (mLauncher.isInMultiWindowModeCompat()) {
- mFloatingView.getLocationOnScreen(floatingViewBounds);
- } else {
- mFloatingView.getLocationInWindow(floatingViewBounds);
- }
+ mFloatingView.getLocationOnScreen(floatingViewBounds);
+
float transX0 = floatingViewBounds[0] - offsetX;
float transY0 = floatingViewBounds[1] - offsetY;
matrix.postTranslate(transX0, transY0);