From 4bb3fb128f9ab7d6d60b87078696c9b0d0e9f0dd Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 26 Feb 2020 14:54:36 +0100 Subject: [PATCH] Fix crash reported from rageshake --- .../im/vector/riotx/features/media/ImageContentRenderer.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/riotx/features/media/ImageContentRenderer.kt b/vector/src/main/java/im/vector/riotx/features/media/ImageContentRenderer.kt index d11af4f350..e497d9ce04 100644 --- a/vector/src/main/java/im/vector/riotx/features/media/ImageContentRenderer.kt +++ b/vector/src/main/java/im/vector/riotx/features/media/ImageContentRenderer.kt @@ -144,9 +144,9 @@ class ImageContentRenderer @Inject constructor(private val activeSessionHolder: return } - imageView.setImageLoaderCallback(object: DefaultImageLoaderCallback { + imageView.setImageLoaderCallback(object : DefaultImageLoaderCallback { override fun onSuccess(image: File?) { - imageView.ssiv.orientation = ORIENTATION_USE_EXIF + imageView.ssiv?.orientation = ORIENTATION_USE_EXIF } })