mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Try taking persistent read access to rule sound
This commit is contained in:
@@ -1088,6 +1088,12 @@ public class FragmentRule extends FragmentBase {
|
||||
}
|
||||
|
||||
private void onSelectSound(Uri uri) {
|
||||
try {
|
||||
Log.i("Selected sound uri=" + uri);
|
||||
getContext().getContentResolver().takePersistableUriPermission(uri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
this.sound = uri;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user