Merge pull request #2588 from npv12/12.1-dev

Fix npe, gesture stuck issue
This commit is contained in:
Suphon T
2022-05-16 23:12:25 +07:00
committed by GitHub
2 changed files with 7 additions and 6 deletions
@@ -427,12 +427,10 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
HashMap<Integer, ThumbnailData> snapshots =
mGestureState.consumeRecentsAnimationCanceledSnapshot();
if (snapshots != null) {
mRecentsView.switchToScreenshot(snapshots, () -> {
if (mRecentsAnimationController != null) {
mRecentsAnimationController.cleanupScreenshot();
}
});
mRecentsView.onRecentsAnimationComplete();
if (mRecentsAnimationController != null) {
mRecentsAnimationController.cleanupScreenshot();
}
}
});
+4 -1
View File
@@ -605,7 +605,10 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
// Recycle the QSB widget
if (mQsb != null) {
((ViewGroup) mQsb.getParent()).removeView(mQsb);
ViewGroup viewGroup = (ViewGroup) mQsb.getParent();
if (viewGroup != null) {
viewGroup.removeView(mQsb);
}
}
// Remove the pages and clear the screen models