Skip to content

Commit

Permalink
Update SetupQemuActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AnBui2004 committed Sep 4, 2024
1 parent f9a32d7 commit 637b3f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/vectras/vm/SetupQemuActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ private void showDisableBatteryOptimizationDialog() {
.setMessage("To ensure the app functions correctly, please disable battery optimization for this app.")
.setCancelable(false)
.setPositiveButton("Disable", (dialog, which) -> {
Intent intent = new Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS);
Intent intent = new Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS);
intent.setData(Uri.parse("package:" + getApplicationContext().getPackageName()));
startActivity(intent);
})
.show();
Expand Down

0 comments on commit 637b3f5

Please sign in to comment.