Merge "Fix NPE when recents animation controller is null" into ub-launcher3-rvc-dev

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2020-05-26 18:48:42 +00:00
commit 0bef6c937a
1 file changed
+3 -1
@@ -245,7 +245,9 @@ public abstract class BaseSwipeUpHandler<T extends StatefulActivity<?>, Q extend
protected void onRestartLastAppearedTask() {
// Finish the controller here, since we won't get onTaskAppeared() for a task that already
// appeared.
mRecentsAnimationController.finish(false, null);
if (mRecentsAnimationController != null) {
mRecentsAnimationController.finish(false, null);
}
}
/**