Skip to content

Commit 948b2bd

Browse files
Merge pull request #132 from dimitriadamou/master
ANDROID Prevents crashing when Importing in the non-default Orientation of app
2 parents f2e0552 + 3d42686 commit 948b2bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/Library/src/MultiImageChooserActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public void selectClicked() {
319319
progress.dismiss();
320320
finish();
321321
} else {
322-
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR); //prevent orientation changes during processing
322+
setRequestedOrientation(getResources().getConfiguration().orientation); //prevent orientation changes during processing
323323
new ResizeImagesTask().execute(fileNames.entrySet());
324324
}
325325
}

0 commit comments

Comments
 (0)