himangipatel / ImagePickerUtil

A Imagepicker which allows to select images or capture from camera with permission
33 stars 12 forks source link

Capture landscape images in OREO crashes (see bugfix) #9

Open wukitech opened 6 years ago

wukitech commented 6 years ago

We faced a crash in oreo if the user will capture an image via camera as landscape. Below are the fixes with found out and it is working now: FilePickerUtils.java Original Line: int orientation = exif.getAttributeInt( ExifInterface.TAG_ORIENTATION, 0); Bugfix Line: int orientation = exif.getAttributeInt( ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);// oreo issue is solved by changing this lines and add config in manifest

In the App Manifest the developer have to use the following lines: <activity android:name=".Activity.[tbdWhichIsUsingTheLibraray]" android:configChanges="orientation|screenSize|keyboardHidden" />

wukitech commented 5 years ago

Did you have implemented this bugfix? I'm using your library local and not your currently providing version.