diff --git a/iNaturalist/src/main/AndroidManifest.xml b/iNaturalist/src/main/AndroidManifest.xml index 331011d67..fa5f1319b 100644 --- a/iNaturalist/src/main/AndroidManifest.xml +++ b/iNaturalist/src/main/AndroidManifest.xml @@ -3,8 +3,8 @@ xmlns:tools="http://schemas.android.com/tools" package="org.inaturalist.android" android:installLocation="auto" - android:versionCode="585" - android:versionName="1.29.11"> + android:versionCode="587" + android:versionName="1.29.13"> diff --git a/iNaturalist/src/main/java/org/inaturalist/android/ObservationEditor.java b/iNaturalist/src/main/java/org/inaturalist/android/ObservationEditor.java index c04b702fd..bb6009179 100644 --- a/iNaturalist/src/main/java/org/inaturalist/android/ObservationEditor.java +++ b/iNaturalist/src/main/java/org/inaturalist/android/ObservationEditor.java @@ -1456,19 +1456,22 @@ private void chooseSound() { mApp.requestExternalStoragePermission(getActivity(), new INaturalistApp.OnRequestPermissionResult() { @Override public void onPermissionGranted() { + Logger.tag(TAG).debug("chooseSound - permission granted"); chooseSound(); } @Override public void onPermissionDenied() { - + Logger.tag(TAG).debug("chooseSound - permission denied"); } }); return; } - mFileUri = getOutputMediaFileUri(); // create a file to save the sound file - mFileUri = getPath(getActivity(), mFileUri); + if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR2) { + mFileUri = getOutputMediaFileUri(); // create a file to save the sound file + mFileUri = getPath(getActivity(), mFileUri); + } final Intent galleryIntent = new Intent(); galleryIntent.setType("audio/*");