mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
Enable enlarging the image more than default 3x maximumScale.
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
This commit is contained in:
parent
71ca6fbbfd
commit
0385c951b4
@ -94,6 +94,11 @@ class FullScreenImageActivity : AppCompatActivity() {
|
|||||||
toggleFullscreen()
|
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 fileName = intent.getStringExtra("FILE_NAME")
|
||||||
val isGif = intent.getBooleanExtra("IS_GIF", false)
|
val isGif = intent.getBooleanExtra("IS_GIF", false)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user