From b6ee141c9cae2964efb8bf1db441f119d50473fe Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 23 Jan 2017 19:33:44 +0100 Subject: [PATCH] remove a writeexif line when opening weird images, like K9 attachments --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index b6f4e8210..527d41318 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -61,7 +61,6 @@ class PhotoFragment : ViewPagerFragment() { val file = File(context.externalCacheDir, Uri.parse(originalPath).lastPathSegment) out = FileOutputStream(file) rotated.compress(Bitmap.CompressFormat.JPEG, 100, out) - exif.writeExif(rotated, file.absolutePath, 100) medium.path = file.absolutePath } catch (e: Exception) { context.toast(R.string.unknown_error_occurred)