remove a writeexif line when opening weird images, like K9 attachments
This commit is contained in:
parent
cf4bb250fe
commit
b6ee141c9c
1 changed files with 0 additions and 1 deletions
|
@ -61,7 +61,6 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
val file = File(context.externalCacheDir, Uri.parse(originalPath).lastPathSegment)
|
val file = File(context.externalCacheDir, Uri.parse(originalPath).lastPathSegment)
|
||||||
out = FileOutputStream(file)
|
out = FileOutputStream(file)
|
||||||
rotated.compress(Bitmap.CompressFormat.JPEG, 100, out)
|
rotated.compress(Bitmap.CompressFormat.JPEG, 100, out)
|
||||||
exif.writeExif(rotated, file.absolutePath, 100)
|
|
||||||
medium.path = file.absolutePath
|
medium.path = file.absolutePath
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
context.toast(R.string.unknown_error_occurred)
|
context.toast(R.string.unknown_error_occurred)
|
||||||
|
|
Loading…
Reference in a new issue