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

Commit c9ff946d authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE on RemoteAnimationTargetCompat" into sc-dev

parents cb872fc7 271318db
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;