Merge "Check for null when calling getCreatedActivity which is marked as Nullable" into tm-qpr-dev

This commit is contained in:
Sebastián Franco
2022-09-23 15:19:43 +00:00
committed by Android (Google) Code Review

View File

@@ -240,8 +240,11 @@ public class OverviewCommandHelper {
interactionHandler.onGestureCancelled();
cmd.removeListener(this);
RecentsView createdRecents =
activityInterface.getCreatedActivity().getOverviewPanel();
T createdActivity = activityInterface.getCreatedActivity();
if (createdActivity == null) {
return;
}
RecentsView createdRecents = createdActivity.getOverviewPanel();
if (createdRecents != null) {
createdRecents.onRecentsAnimationComplete();
}