Merge "Check if mRecentsAnimationController is null before switching to screenshot" into sc-dev am: 5465527e16 am: 7c4ad155fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14490316 Change-Id: Ie6c639fe0e0908afb76653b484ee337ccc8d6247
This commit is contained in:
@@ -3635,6 +3635,12 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
* capturing the snapshot at the same time.
|
||||
*/
|
||||
public void switchToScreenshot(Runnable onFinishRunnable) {
|
||||
if (mRecentsAnimationController == null) {
|
||||
if (onFinishRunnable != null) {
|
||||
onFinishRunnable.run();
|
||||
}
|
||||
return;
|
||||
}
|
||||
switchToScreenshot(mRunningTaskId == -1 ? null
|
||||
: mRecentsAnimationController.screenshotTask(mRunningTaskId), onFinishRunnable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user