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

Commit 282f200d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix largescreen update delay." into main

parents e3af36c7 6f674dd0
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -139,9 +139,10 @@ constructor(
            }
            }
            .stateIn(
            .stateIn(
                backgroundScope,
                backgroundScope,
                started = SharingStarted.WhileSubscribed(),
                started = SharingStarted.Eagerly,
                initialValue = false,
                initialValue = false,
            )
            )

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