Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2039614 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Check if live tile targetSet is null in launchSideTaskInLiveTileModeForRestartedApp

Fixes: 192458435
Test: N/A
Change-Id: I3f0b828bf9fa9645bbd253612aa073f37b21e4b2
parent 679f8bb9
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -843,10 +843,12 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
    }

    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);
            }
        }
    }