Loading packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/AppTransitionAnimationSpecsFuture.java +4 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,10 @@ public abstract class AppTransitionAnimationSpecsFuture { mHandler.post(mComposeTask); } List<AppTransitionAnimationSpecCompat> specs = mComposeTask.get(); // Clear reference to the compose task this future holds onto the reference to it's // implementation (which can leak references to the bitmap it creates for the // transition) mComposeTask = null; if (specs == null) { return null; } Loading packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java +7 −0 Original line number Diff line number Diff line Loading @@ -276,6 +276,9 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener } }; // Used to reset the dummy stack view private final TaskStack mEmptyTaskStack = new TaskStack(); public RecentsImpl(Context context) { mContext = context; mHandler = new Handler(); Loading Loading @@ -1108,6 +1111,10 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener } }); EventBus.getDefault().send(hideMenuEvent); // Once we have launched the activity, reset the dummy stack view tasks so we don't hold // onto references to the same tasks consumed by the activity mDummyStackView.setTasks(mEmptyTaskStack, false /* notifyStackChanges */); } /**** OnAnimationFinishedListener Implementation ****/ Loading packages/SystemUI/src/com/android/systemui/recents/RecentsOnboarding.java +3 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,9 @@ public class RecentsOnboarding { public void onTaskStackChanged() { ActivityManager.RunningTaskInfo info = ActivityManagerWrapper.getInstance() .getRunningTask(ACTIVITY_TYPE_UNDEFINED /* ignoreActivityType */); if (info == null) { return; } if (mBlacklistedPackages.contains(info.baseActivity.getPackageName())) { hide(true); return; Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarGestureHelper.java +5 −1 Original line number Diff line number Diff line Loading @@ -73,6 +73,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture private int mTouchDownY; private boolean mDownOnRecents; private VelocityTracker mVelocityTracker; private boolean mIsInScreenPinning; private boolean mDockWindowEnabled; private boolean mDockWindowTouchSlopExceeded; Loading Loading @@ -105,6 +106,9 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture } public boolean onInterceptTouchEvent(MotionEvent event) { if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { mIsInScreenPinning = mNavigationBarView.inScreenPinning(); } if (!canHandleGestures()) { return false; } Loading Loading @@ -269,7 +273,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture } private boolean canHandleGestures() { return !mNavigationBarView.inScreenPinning() && !mStatusBar.isKeyguardShowing() return !mIsInScreenPinning && !mStatusBar.isKeyguardShowing() && mStatusBar.isPresenterFullyCollapsed(); } Loading Loading
packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/AppTransitionAnimationSpecsFuture.java +4 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,10 @@ public abstract class AppTransitionAnimationSpecsFuture { mHandler.post(mComposeTask); } List<AppTransitionAnimationSpecCompat> specs = mComposeTask.get(); // Clear reference to the compose task this future holds onto the reference to it's // implementation (which can leak references to the bitmap it creates for the // transition) mComposeTask = null; if (specs == null) { return null; } Loading
packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java +7 −0 Original line number Diff line number Diff line Loading @@ -276,6 +276,9 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener } }; // Used to reset the dummy stack view private final TaskStack mEmptyTaskStack = new TaskStack(); public RecentsImpl(Context context) { mContext = context; mHandler = new Handler(); Loading Loading @@ -1108,6 +1111,10 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener } }); EventBus.getDefault().send(hideMenuEvent); // Once we have launched the activity, reset the dummy stack view tasks so we don't hold // onto references to the same tasks consumed by the activity mDummyStackView.setTasks(mEmptyTaskStack, false /* notifyStackChanges */); } /**** OnAnimationFinishedListener Implementation ****/ Loading
packages/SystemUI/src/com/android/systemui/recents/RecentsOnboarding.java +3 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,9 @@ public class RecentsOnboarding { public void onTaskStackChanged() { ActivityManager.RunningTaskInfo info = ActivityManagerWrapper.getInstance() .getRunningTask(ACTIVITY_TYPE_UNDEFINED /* ignoreActivityType */); if (info == null) { return; } if (mBlacklistedPackages.contains(info.baseActivity.getPackageName())) { hide(true); return; Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarGestureHelper.java +5 −1 Original line number Diff line number Diff line Loading @@ -73,6 +73,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture private int mTouchDownY; private boolean mDownOnRecents; private VelocityTracker mVelocityTracker; private boolean mIsInScreenPinning; private boolean mDockWindowEnabled; private boolean mDockWindowTouchSlopExceeded; Loading Loading @@ -105,6 +106,9 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture } public boolean onInterceptTouchEvent(MotionEvent event) { if (event.getActionMasked() == MotionEvent.ACTION_DOWN) { mIsInScreenPinning = mNavigationBarView.inScreenPinning(); } if (!canHandleGestures()) { return false; } Loading Loading @@ -269,7 +273,7 @@ public class NavigationBarGestureHelper implements TunerService.Tunable, Gesture } private boolean canHandleGestures() { return !mNavigationBarView.inScreenPinning() && !mStatusBar.isKeyguardShowing() return !mIsInScreenPinning && !mStatusBar.isKeyguardShowing() && mStatusBar.isPresenterFullyCollapsed(); } Loading