Fix voice note saves on API 28 and lower.
This commit is contained in:
parent
ca633b13af
commit
3f2b4d60fd
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ public class StorageUtil {
|
|||
}
|
||||
|
||||
public static @NonNull Uri getAudioUri() {
|
||||
if (Build.VERSION.SDK_INT < 21) {
|
||||
if (Build.VERSION.SDK_INT < 29) {
|
||||
return getLegacyUri(Environment.DIRECTORY_MUSIC);
|
||||
} else {
|
||||
return MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
|
||||
|
|
Loading…
Add table
Reference in a new issue