diff --git a/app/src/main/java/com/github/droidworksstudio/mlauncher/helper/BatteryReceiver.kt b/app/src/main/java/com/github/droidworksstudio/mlauncher/helper/BatteryReceiver.kt index 8ff70eaa..bbc41eff 100644 --- a/app/src/main/java/com/github/droidworksstudio/mlauncher/helper/BatteryReceiver.kt +++ b/app/src/main/java/com/github/droidworksstudio/mlauncher/helper/BatteryReceiver.kt @@ -73,7 +73,10 @@ class BatteryReceiver : BroadcastReceiver() { val textView = (contextBattery)?.findViewById(R.id.batteryText) textView?.text = "$batteryLevel%" - + textView?.setOnClickListener { + val powerUsageIntent = Intent(Intent.ACTION_POWER_USAGE_SUMMARY) + context.startActivity(powerUsageIntent) + } } }