From 1d1a3d7242d0c0e89c856d00e06bc3df7b55bc9d Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Mon, 28 May 2018 18:08:40 +0200 Subject: [PATCH] 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 --- .../launcher3/LauncherAppTransitionManagerImpl.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java b/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java index 6703bb546e..3075c3f48d 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);