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

Commit a333ed2a authored by Ido Ben-Hur's avatar Ido Ben-Hur Committed by Bruno Martins
Browse files

SystemUI: Make battery clickable again

Change-Id: I66751353944b4cf8a5b5827c3ce53129ec84f1e7
parent 3c44944c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -396,6 +396,8 @@ constructor(
            mView.requireViewById<ViewGroup>(R.id.hover_system_icons_container).apply {
                addView(batteryComposeView, -1)
            }

            batteryComposeView.setOnClickListener { launchBatteryActivity() }
        }

        carrierIconSlots =
@@ -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) {