aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-08-31 21:55:36 +0200
committerChristian Schneppe <christian@pix-art.de>2019-08-31 21:55:36 +0200
commit7da9909586bb642e67a088840b9fb95e32b33827 (patch)
treed235989c19723ac7238e0e3211c12ed975c99446
parente612506be34a4983dd870ef96f2ee1f1dc0fab25 (diff)
fix rotation issues in MediaViewerActivity
-rw-r--r--src/main/java/de/pixart/messenger/ui/MediaViewerActivity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/MediaViewerActivity.java b/src/main/java/de/pixart/messenger/ui/MediaViewerActivity.java
index 95f2610d2..d8082b7e9 100644
--- a/src/main/java/de/pixart/messenger/ui/MediaViewerActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/MediaViewerActivity.java
@@ -246,6 +246,7 @@ public class MediaViewerActivity extends XmppActivity implements AudioManager.On
binding.messageGifView.setOnTouchListener((view, motionEvent) -> gestureDetector.onTouchEvent(motionEvent));
} else {
binding.messageImageView.setVisibility(View.VISIBLE);
+ binding.messageImageView.setOrientation(rotation);
binding.messageImageView.setImage(ImageSource.uri(FileUri));
binding.messageImageView.setOnTouchListener((view, motionEvent) -> gestureDetector.onTouchEvent(motionEvent));
}