mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-05 10:26:52 +00:00
Merge "Add null check for mRemoteTargetHandles for side task launch" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a6c2e3f263
@@ -984,13 +984,17 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
*/
|
||||
public void launchSideTaskInLiveTileModeForRestartedApp(int taskId) {
|
||||
int runningTaskViewId = getTaskViewIdFromTaskId(taskId);
|
||||
if (mRunningTaskViewId != -1 && mRunningTaskViewId == runningTaskViewId) {
|
||||
TransformParams params = mRemoteTargetHandles[0].getTransformParams();
|
||||
RemoteAnimationTargets targets = params.getTargetSet();
|
||||
if (targets != null && targets.findTask(taskId) != null) {
|
||||
launchSideTaskInLiveTileMode(taskId, targets.apps, targets.wallpapers,
|
||||
targets.nonApps);
|
||||
}
|
||||
if (mRunningTaskViewId == -1 ||
|
||||
mRunningTaskViewId != runningTaskViewId ||
|
||||
mRemoteTargetHandles == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
TransformParams params = mRemoteTargetHandles[0].getTransformParams();
|
||||
RemoteAnimationTargets targets = params.getTargetSet();
|
||||
if (targets != null && targets.findTask(taskId) != null) {
|
||||
launchSideTaskInLiveTileMode(taskId, targets.apps, targets.wallpapers,
|
||||
targets.nonApps);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user