Skip to content

Commit

Permalink
#1305 - crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
budowski committed Sep 18, 2023
1 parent f5f377e commit c41a1ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions iNaturalist/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/*");
Expand Down

0 comments on commit c41a1ea

Please sign in to comment.