Skip to content

Commit

Permalink
updated requestExactAlarmPermissions to open alarm settings screen sp…
Browse files Browse the repository at this point in the history
…ecific to app (#2118)
  • Loading branch information
ShunMc authored Oct 6, 2023
1 parent 7f92cb0 commit 1ce5794
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,9 @@ public void requestExactAlarmsPermission(@NonNull PermissionRequestListener call
if (!permissionGranted) {
permissionRequestProgress = PermissionRequestProgress.RequestingExactAlarmsPermission;
mainActivity.startActivityForResult(
new Intent(ACTION_REQUEST_SCHEDULE_EXACT_ALARM), EXACT_ALARM_PERMISSION_REQUEST_CODE);
new Intent(ACTION_REQUEST_SCHEDULE_EXACT_ALARM,
Uri.parse("package:" + applicationContext.getPackageName())),
EXACT_ALARM_PERMISSION_REQUEST_CODE);
} else {
this.callback.complete(true);
permissionRequestProgress = PermissionRequestProgress.None;
Expand Down

0 comments on commit 1ce5794

Please sign in to comment.