commit | ed5b2b3babd52738b4057f239fcdae437a4dcffb | [log] [tgz] |
---|---|---|
author | Tracy Zhou <tracyzhou@google.com> | Fri Jul 02 18:56:35 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Jul 02 18:56:35 2021 +0000 |
tree | 0072d1d9068b36c59269574d7eb499bb323f3a4d | |
parent | 24078952261630c67cde77aabaf5680c70f17e12 [diff] | |
parent | f3e9774ca69dc1ebe610263e396cc7a0cd2e5b55 [diff] |
Merge "Check if live tile targetSet is null in launchSideTaskInLiveTileModeForRestartedApp" into sc-dev am: fa72529b05 am: f3e9774ca6 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15184810 Change-Id: I32da1bf258c69d9c694465428e37ffbd110950f5
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 538f626..3b32289 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -870,10 +870,12 @@ } public void launchSideTaskInLiveTileModeForRestartedApp(int taskId) { - if (mRunningTaskId != -1 && mRunningTaskId == taskId && - getLiveTileParams().getTargetSet().findTask(taskId) != null) { + if (mRunningTaskId != -1 && mRunningTaskId == taskId) { RemoteAnimationTargets targets = getLiveTileParams().getTargetSet(); - launchSideTaskInLiveTileMode(taskId, targets.apps, targets.wallpapers, targets.nonApps); + if (targets != null && targets.findTask(taskId) != null) { + launchSideTaskInLiveTileMode(taskId, targets.apps, targets.wallpapers, + targets.nonApps); + } } }