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

Commit 6f674dd0 authored by Hao Dong's avatar Hao Dong
Browse files

Fix largescreen update delay.

Flag: com.android.systemui.constraint_bp
Bug: 345198237
Test: manualy verified on test app

Change-Id: Ic2186abfdfcc19001a796bac0de89908d26d7b53
parent 8e4d3fdc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -139,9 +139,10 @@ constructor(
            }
            .stateIn(
                backgroundScope,
                started = SharingStarted.WhileSubscribed(),
                started = SharingStarted.Eagerly,
                initialValue = false,
            )

    private fun dpiFromPx(size: Float, densityDpi: Int): Float {
        val densityRatio = densityDpi.toFloat() / DisplayMetrics.DENSITY_DEFAULT
        return size / densityRatio