Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Jun 2, 2024
1 parent 72ff30b commit 697fd03
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ class PermissionActivity : AppCompatActivity() {
kotlin.runCatching {
val intent = Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS)
intent.setData(Uri.parse("package:$packageName"))
intent.setClassName(
"com.android.settings",
"com.android.settings.fuelgauge.RequestIgnoreBatteryOptimizations"
)
settingActivityResult.launch(intent)
}
}
Expand Down

0 comments on commit 697fd03

Please sign in to comment.