Null check on RecentsView for endLiveTile
Fixes: 304914019 manual: N/A Change-Id: I6c6e3f0f52e57589f71b3c63debac21734fc88bf
This commit is contained in:
@@ -190,9 +190,11 @@ public class TaskOverlayFactory implements ResourceBasedOverride {
|
||||
*/
|
||||
public void endLiveTileMode(@NonNull Runnable callback) {
|
||||
RecentsView recentsView = mThumbnailView.getTaskView().getRecentsView();
|
||||
recentsView.switchToScreenshot(
|
||||
() -> recentsView.finishRecentsAnimation(true /* toRecents */,
|
||||
false /* shouldPip */, callback));
|
||||
if (recentsView != null) {
|
||||
recentsView.switchToScreenshot(
|
||||
() -> recentsView.finishRecentsAnimation(true /* toRecents */,
|
||||
false /* shouldPip */, callback));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user