Skip to content
Permalink
Browse files
Merge branch 'apache:master' into master
  • Loading branch information
PieterVanPoyer committed May 11, 2021
2 parents 2bad1fd + f704689 commit 731c10f5b242dbdbf0ec345ff0d69710112e59f0
Showing 1 changed file with 9 additions and 0 deletions.
@@ -92,6 +92,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
private static final String GET_All = "Get All";
private static final String CROPPED_URI_KEY = "croppedUri";
private static final String IMAGE_URI_KEY = "imageUri";
private static final String IMAGE_FILE_PATH_KEY = "imageFilePath";

private static final String TAKE_PICTURE_ACTION = "takePicture";

@@ -1350,6 +1351,10 @@ public Bundle onSaveInstanceState() {
state.putString(IMAGE_URI_KEY, this.imageFilePath);
}

if (this.imageFilePath != null) {
state.putString(IMAGE_FILE_PATH_KEY, this.imageFilePath);
}

return state;
}

@@ -1375,6 +1380,10 @@ public void onRestoreStateForActivityResult(Bundle state, CallbackContext callba
this.imageUri = Uri.parse(state.getString(IMAGE_URI_KEY));
}

if (state.containsKey(IMAGE_FILE_PATH_KEY)) {
this.imageFilePath = state.getString(IMAGE_FILE_PATH_KEY);
}

this.callbackContext = callbackContext;
}
}

0 comments on commit 731c10f

Please sign in to comment.