1
0
Fork 0
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:
M66B 2024-06-12 17:21:54 +02:00
parent 6c6e55f2b7
commit b10c917e54

View file

@ -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;
}