Fixing recents animation not getting completed sometimes when using 3P launcher am: fcad20bad9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11855087 Change-Id: Ic1e3ae2bd5d9356375bef17679ea53a6a96f7b8d
This commit is contained in:
@@ -131,7 +131,7 @@ public abstract class BaseSwipeUpHandlerV2<T extends StatefulActivity<?>, Q exte
|
||||
|
||||
private static final int STATE_CAPTURE_SCREENSHOT =
|
||||
getFlagForIndex(10, "STATE_CAPTURE_SCREENSHOT");
|
||||
private static final int STATE_SCREENSHOT_CAPTURED =
|
||||
protected static final int STATE_SCREENSHOT_CAPTURED =
|
||||
getFlagForIndex(11, "STATE_SCREENSHOT_CAPTURED");
|
||||
private static final int STATE_SCREENSHOT_VIEW_SHOWN =
|
||||
getFlagForIndex(12, "STATE_SCREENSHOT_VIEW_SHOWN");
|
||||
@@ -1192,7 +1192,7 @@ public abstract class BaseSwipeUpHandlerV2<T extends StatefulActivity<?>, Q exte
|
||||
mActivity.clearForceInvisibleFlag(INVISIBLE_BY_STATE_HANDLER);
|
||||
}
|
||||
|
||||
private void switchToScreenshot() {
|
||||
protected void switchToScreenshot() {
|
||||
final int runningTaskId = mGestureState.getRunningTaskId();
|
||||
if (ENABLE_QUICKSTEP_LIVE_TILE.get()) {
|
||||
if (mRecentsAnimationController != null) {
|
||||
|
||||
@@ -110,6 +110,16 @@ public class FallbackSwipeHandler extends
|
||||
false /* toRecents */, callback, true /* sendUserLeaveHint */);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void switchToScreenshot() {
|
||||
if (mRunningOverHome) {
|
||||
// When the current task is home, then we don't need to capture anything
|
||||
mStateCallback.setStateOnUiThread(STATE_SCREENSHOT_CAPTURED);
|
||||
} else {
|
||||
super.switchToScreenshot();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void notifyGestureAnimationStartToRecents() {
|
||||
if (mRunningOverHome) {
|
||||
|
||||
Reference in New Issue
Block a user