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

Commit ff360e92 authored by Helen Cheuk's avatar Helen Cheuk Committed by Android (Google) Code Review
Browse files

Merge "[Action Corner] Add action corner flag to DisplayWindowPropertiesRepositoryImpl" into main

parents a5bcb9ef 82e6d810
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import com.android.systemui.dagger.qualifiers.Background
import com.android.systemui.display.shared.model.DisplayWindowProperties
import com.android.systemui.res.R
import com.android.systemui.shade.shared.flag.ShadeWindowGoesAround
import com.android.systemui.shared.Flags.cursorHotCorner
import com.android.systemui.statusbar.core.StatusBarConnectedDisplays
import com.android.systemui.utils.windowmanager.WindowManagerUtils
import com.google.common.collect.HashBasedTable
@@ -63,9 +64,13 @@ constructor(
) : DisplayWindowPropertiesRepository, CoreStartable {

    init {
        check(StatusBarConnectedDisplays.isEnabled || ShadeWindowGoesAround.isEnabled) {
            "This should be instantiated only when wither StatusBarConnectedDisplays or " +
                "ShadeWindowGoesAround are enabled."
        check(
            StatusBarConnectedDisplays.isEnabled ||
                ShadeWindowGoesAround.isEnabled ||
                cursorHotCorner()
        ) {
            "This should be instantiated only when either StatusBarConnectedDisplays or " +
                "ShadeWindowGoesAround or cursorHotCorner are enabled."
        }
    }