Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Added intent for ACTION_POWER_USAGE_SUMMARY #504

Merged
merged 1 commit into from
May 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ class BatteryReceiver : BroadcastReceiver() {

val textView = (contextBattery)?.findViewById<TextView>(R.id.batteryText)
textView?.text = "$batteryLevel%"

textView?.setOnClickListener {
val powerUsageIntent = Intent(Intent.ACTION_POWER_USAGE_SUMMARY)
context.startActivity(powerUsageIntent)
}
}
}

Loading