Skip to content

Commit

Permalink
no need to request external storage permission again, requestMediaLoc…
Browse files Browse the repository at this point in the history
…ationPermission when user pressed the close button

Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Jan 13, 2025
1 parent f2307d5 commit f5f8584
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,18 +362,14 @@ private void showAutoUploadWarningForGPlayFlavour() {
.setTitle(title)
.setMessage(message)
.setNegativeButton(R.string.dialog_close, (dialog, which) -> {
dialog.dismiss();
PermissionUtil.requestMediaLocationPermission(this);
preferences.setAutoUploadGPlayWarning2Shown(true);
dialog.dismiss();
})
.setIcon(R.drawable.nav_synced_folders)
.create()
.show();
}

PermissionUtil.requestMediaLocationPermission(this);
PermissionUtil.requestExternalStoragePermission(this, viewThemeUtils, true);


}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit f5f8584

Please sign in to comment.