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

Commit 8c2e8695 authored by Evan Laird's avatar Evan Laird
Browse files

[shade] add an id to the battery composable

Allows us to easily find this in tests

Test: manual
Bug: 398226765
Flag: com.android.settingslib.flags.new_status_bar_icons
Change-Id: I795f6bc72c7b08dde14e142536a2480219f98a27
parent f659d841
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -294,4 +294,7 @@
    <item type="id" name="brightness_dialog_slider" />

    <item type="id" name="aod_promoted_notification_view_updater_tag" />

    <!-- id for the composable battery meter (see UnifiedBattery.kt) -->
    <item type="id" name="battery_meter_composable_view" />
</resources>
+1 −0
Original line number Diff line number Diff line
@@ -366,6 +366,7 @@ constructor(
            val batteryComposeView =
                ComposeView(mView.context).apply {
                    setContent {
                        id = R.id.battery_meter_composable_view
                        val showBatteryEstimate by showBatteryEstimate.collectAsStateWithLifecycle()
                        BatteryWithEstimate(
                            modifier = Modifier.height(17.dp).wrapContentWidth(),