show PermanentDenialDialog also on share, avoid users getting lost

This commit is contained in:
B. Petersen
2020-08-22 00:55:35 +02:00
parent 83e9860aa9
commit 0778fee77b
@@ -148,7 +148,7 @@ public class ShareActivity extends PassphraseRequiredActionBarActivity implement
Permissions.with(this)
.request(Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE)
.ifNecessary()
.withRationaleDialog(this.getString(R.string.perm_explain_need_for_storage_access_share), R.drawable.ic_folder_white_48dp)
.withPermanentDenialDialog(getString(R.string.perm_explain_access_to_storage_denied))
.onAllGranted(() -> resolveUris(streamExtras))
.onAnyDenied(this::abortShare)
.execute();