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

Commit 53334106 authored by Pierre Barbier de Reuille's avatar Pierre Barbier de Reuille
Browse files

Remove the last 2 uses of displayTopology flags

These are the last 2 direct uses of the flags. All other uses go through
the DesktopExperienceFlags, either directly or through
DisplayManagerFlag.

Fix: 413691958
Test: Build and presuibmit
Flag: EXEMPT (flag system)
Change-Id: I35e31fd3ff852641507b7d5ad4a471467617a199
parent 69a939ef
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ import android.view.Display;
import android.view.DisplayAdjustments;
import android.view.DisplayInfo;
import android.view.Surface;
import android.window.DesktopExperienceFlags;

import com.android.internal.annotations.VisibleForTesting;
import com.android.server.display.feature.flags.Flags;
@@ -1435,7 +1436,7 @@ public final class DisplayManagerGlobal {
    @RequiresPermission(MANAGE_DISPLAYS)
    public void registerTopologyListener(@NonNull @CallbackExecutor Executor executor,
            @NonNull Consumer<DisplayTopology> listener, String packageName) {
        if (!Flags.displayTopology()) {
        if (!DesktopExperienceFlags.DISPLAY_TOPOLOGY.isTrue()) {
            return;
        }
        if (listener == null) {
@@ -1461,7 +1462,7 @@ public final class DisplayManagerGlobal {
     */
    @RequiresPermission(MANAGE_DISPLAYS)
    public void unregisterTopologyListener(@NonNull Consumer<DisplayTopology> listener) {
        if (!Flags.displayTopology()) {
        if (!DesktopExperienceFlags.DISPLAY_TOPOLOGY.isTrue()) {
            return;
        }
        if (listener == null) {