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

Commit 8afeba60 authored by Sebastian Franco's avatar Sebastian Franco
Browse files

Possible fix for NullPointerException b/206040100.

There is a NullPointerException when trying to get the
length of the array.

Test: Manually tested
Fix: 206040100
Change-Id: I69a03fd3658094655eaf97fa21039fd373ee37d5
parent 6547721d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -597,7 +597,9 @@ public class TaskView extends FrameLayout implements Reusable {
        if (confirmSecondSplitSelectApp()) {
            return;
        }
        if (ENABLE_QUICKSTEP_LIVE_TILE.get() && isRunningTask()) {
        RecentsView recentsView = getRecentsView();
        RemoteTargetHandle[] remoteTargetHandles = recentsView.mRemoteTargetHandles;
        if (ENABLE_QUICKSTEP_LIVE_TILE.get() && isRunningTask() && remoteTargetHandles != null) {
            if (!mIsClickableAsLiveTile) {
                return;
            }
@@ -610,9 +612,7 @@ public class TaskView extends FrameLayout implements Reusable {
            }

            mIsClickableAsLiveTile = false;
            RecentsView recentsView = getRecentsView();
            RemoteAnimationTargets targets;
            RemoteTargetHandle[] remoteTargetHandles = recentsView.mRemoteTargetHandles;
            if (remoteTargetHandles.length == 1) {
                targets = remoteTargetHandles[0].getTransformParams().getTargetSet();
            } else {