mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Check for null when calling getCreatedActivity which is marked as Nullable
Fix: 243508135 Test: compiles Change-Id: Id1ff2cf68fa10690a1bbec60a0c17cceab9db8d1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user