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

Commit d746cc56 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB] Add Box wrapper to StatusBarRoot.

It seems this helps with performance because we don't lay out as often.

Bug: 430690566
Flag: EXEMPT refactor
Test: General smoke test of status bar
Change-Id: I0275c15d21949630f55cdef6fbcafb04be43a885
parent a330fa34
Loading
Loading
Loading
Loading
+124 −120
Original line number Diff line number Diff line
@@ -24,7 +24,9 @@ import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.annotation.VisibleForTesting
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.widthIn
@@ -223,6 +225,7 @@ fun StatusBarRoot(
        return
    }

    Box(modifier.fillMaxSize()) {
        AndroidView(
            factory = { context ->
                val inflater = LayoutInflater.from(context)
@@ -367,6 +370,7 @@ fun StatusBarRoot(
            onRelease = { touchableExclusionRegionDisposableHandle.dispose() },
        )
    }
}

/** Adds the composable chips shown on the start side of the status bar. */
private fun addStartSideComposable(