Loading packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt +8 −0 Original line number Diff line number Diff line Loading @@ -396,6 +396,8 @@ constructor( mView.requireViewById<ViewGroup>(R.id.hover_system_icons_container).apply { addView(batteryComposeView, -1) } batteryComposeView.setOnClickListener { launchBatteryActivity() } } carrierIconSlots = Loading Loading @@ -518,6 +520,12 @@ constructor( .start() } private fun launchBatteryActivity() { activityStarter.postStartActivityDismissingKeyguard( Intent(Intent.ACTION_POWER_USAGE_SUMMARY), 0 ) } @VisibleForTesting internal fun launchClockActivity() { if (nextAlarmIntent != null) { Loading Loading
packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt +8 −0 Original line number Diff line number Diff line Loading @@ -396,6 +396,8 @@ constructor( mView.requireViewById<ViewGroup>(R.id.hover_system_icons_container).apply { addView(batteryComposeView, -1) } batteryComposeView.setOnClickListener { launchBatteryActivity() } } carrierIconSlots = Loading Loading @@ -518,6 +520,12 @@ constructor( .start() } private fun launchBatteryActivity() { activityStarter.postStartActivityDismissingKeyguard( Intent(Intent.ACTION_POWER_USAGE_SUMMARY), 0 ) } @VisibleForTesting internal fun launchClockActivity() { if (nextAlarmIntent != null) { Loading