mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Prevent crash
This commit is contained in:
@@ -871,7 +871,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
|
||||
try {
|
||||
getContext().getContentResolver().takePersistableUriPermission(uri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
if (!Helper.isPersisted(getContext(), uri, true, false))
|
||||
Log.unexpectedError(getParentFragmentManager(),
|
||||
Log.unexpectedError(FragmentOptionsNotifications.this,
|
||||
new IllegalStateException("No permission granted to access selected sound " + uri));
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
|
||||
Reference in New Issue
Block a user