Merge pull request #2588 from npv12/12.1-dev
Fix npe, gesture stuck issue
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user