瀏覽代碼

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)