Merge "Check if live tile targetSet is null in launchSideTaskInLiveTileModeForRestartedApp" into sc-dev am: fa72529b05
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15184810 Change-Id: I9cb5e7e4ca2269c56ef835eee93bdc5b605583ac
This commit is contained in:
@@ -870,10 +870,12 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void launchSideTaskInLiveTileModeForRestartedApp(int taskId) {
|
public void launchSideTaskInLiveTileModeForRestartedApp(int taskId) {
|
||||||
if (mRunningTaskId != -1 && mRunningTaskId == taskId &&
|
if (mRunningTaskId != -1 && mRunningTaskId == taskId) {
|
||||||
getLiveTileParams().getTargetSet().findTask(taskId) != null) {
|
|
||||||
RemoteAnimationTargets targets = getLiveTileParams().getTargetSet();
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user