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

Commit 3a339962 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix invalid cast in DisplaManager.getDisplays" into udc-dev am: 168bddd4 am: 719c89e0

parents 2c90ba73 719c89e0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -53,8 +53,6 @@ import android.view.Surface;
import com.android.internal.R;
import com.android.internal.annotations.GuardedBy;

import libcore.util.EmptyArray;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.ref.WeakReference;
@@ -667,7 +665,7 @@ public final class DisplayManager {
        } else if (category == null || DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED.equals(category)) {
            return getDisplays(displayIds, Objects::nonNull);
        }
        return (Display[]) EmptyArray.OBJECT;
        return new Display[0];
    }

    private Display[] getDisplays(int[] displayIds, Predicate<Display> predicate) {