소스 검색

Enable enlarging the image more than default 3x maximumScale.

Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
Dariusz Olszewski 4 년 전
부모
커밋
0385c951b4
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      app/src/main/java/com/nextcloud/talk/activities/FullScreenImageActivity.kt

+ 5 - 0
app/src/main/java/com/nextcloud/talk/activities/FullScreenImageActivity.kt

@@ -94,6 +94,11 @@ class FullScreenImageActivity : AppCompatActivity() {
             toggleFullscreen()
         }
 
+        // Enable enlarging the image more than default 3x maximumScale.
+        // Medium scale adapted to make double-tap behaviour more consistent.
+        photoView.maximumScale = 6.0f
+        photoView.mediumScale = 2.45f
+
         val fileName = intent.getStringExtra("FILE_NAME")
         val isGif = intent.getBooleanExtra("IS_GIF", false)