Loading packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt +5 −2 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import android.view.ViewGroup import android.view.WindowInsets import android.widget.TextView import androidx.annotation.VisibleForTesting import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.foundation.layout.wrapContentSize import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.getValue Loading Loading @@ -424,10 +425,11 @@ constructor( PlatformTheme { id = R.id.battery_meter_composable_view val showBatteryEstimate by showBatteryEstimate.collectAsStateWithLifecycle() val dark = isSystemInDarkTheme() BatteryWithChargeStatus( modifier = Modifier.wrapContentSize(), viewModelFactory = tandemBatteryViewModelFactory, isDarkProvider = { IsAreaDark { true } }, isDarkProvider = { IsAreaDark { dark } }, showPercentMode = if (showBatteryEstimate) ShowPercentMode.PreferEstimate else ShowPercentMode.Always, Loading @@ -441,10 +443,11 @@ constructor( PlatformTheme { id = R.id.battery_meter_composable_view val showBatteryEstimate by showBatteryEstimate.collectAsStateWithLifecycle() val dark = isSystemInDarkTheme() BatteryWithEstimate( modifier = Modifier.wrapContentSize(), viewModelFactory = unifiedBatteryViewModelFactory, isDarkProvider = { IsAreaDark { true } }, isDarkProvider = { IsAreaDark { dark } }, textColor = if (notificationShadeBlur()) MaterialTheme.colorScheme.onSurface else Color.White, Loading Loading
packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt +5 −2 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import android.view.ViewGroup import android.view.WindowInsets import android.widget.TextView import androidx.annotation.VisibleForTesting import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.foundation.layout.wrapContentSize import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.getValue Loading Loading @@ -424,10 +425,11 @@ constructor( PlatformTheme { id = R.id.battery_meter_composable_view val showBatteryEstimate by showBatteryEstimate.collectAsStateWithLifecycle() val dark = isSystemInDarkTheme() BatteryWithChargeStatus( modifier = Modifier.wrapContentSize(), viewModelFactory = tandemBatteryViewModelFactory, isDarkProvider = { IsAreaDark { true } }, isDarkProvider = { IsAreaDark { dark } }, showPercentMode = if (showBatteryEstimate) ShowPercentMode.PreferEstimate else ShowPercentMode.Always, Loading @@ -441,10 +443,11 @@ constructor( PlatformTheme { id = R.id.battery_meter_composable_view val showBatteryEstimate by showBatteryEstimate.collectAsStateWithLifecycle() val dark = isSystemInDarkTheme() BatteryWithEstimate( modifier = Modifier.wrapContentSize(), viewModelFactory = unifiedBatteryViewModelFactory, isDarkProvider = { IsAreaDark { true } }, isDarkProvider = { IsAreaDark { dark } }, textColor = if (notificationShadeBlur()) MaterialTheme.colorScheme.onSurface else Color.White, Loading