mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 09:16:00 +00:00
Try taking persistent read access to rule sound
This commit is contained in:
parent
6c6e55f2b7
commit
b10c917e54
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue