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

Commit 29b69625 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE on RemoteAnimationTargetCompat" into sc-dev am: c9ff946d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13451722

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia077328bede6276dbdc9c2f0785fdefc9e74804f
parents 14b94229 c9ff946d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -118,9 +118,9 @@ public class RemoteAnimationTargetCompat {
    }

    public static RemoteAnimationTargetCompat[] wrap(RemoteAnimationTarget[] apps) {
        final RemoteAnimationTargetCompat[] appsCompat =
                new RemoteAnimationTargetCompat[apps != null ? apps.length : 0];
        for (int i = 0; i < apps.length; i++) {
        final int length = apps != null ? apps.length : 0;
        final RemoteAnimationTargetCompat[] appsCompat = new RemoteAnimationTargetCompat[length];
        for (int i = 0; i < length; i++) {
            appsCompat[i] = new RemoteAnimationTargetCompat(apps[i]);
        }
        return appsCompat;