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

Commit 0286f299 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

Avoid instantiating DisplayWindowPropertiesRepository when ShadeWindowGoesAround is off

Bug: 431124692
Flag: com.android.systemui.shade_window_goes_around
Test: OpenInternetQSDialogOnOtherDisplay in next
Change-Id: I124d6c3f20a75ef6bda645d35a94aa0f86d11652
parent cfe6cc08
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -68,7 +68,12 @@ constructor(
    }

    override val context: Context
        get() = getContextOrDefault(shadeDisplayId)
        get() =
            if (!ShadeWindowGoesAround.isEnabled) {
                defaultContext
            } else {
                getContextOrDefault(shadeDisplayId)
            }

    private val shadeDisplayId: Int
        get() =