mirror of
https://github.com/accelforce/Yuito
synced 2025-01-11 23:25:04 +01:00
Allow higher zooming levels for caption dialog images (#1672)
This commit is contained in:
parent
11a4de858c
commit
5945700c1b
@ -50,7 +50,10 @@ fun <T> T.makeCaptionDialog(existingDescription: String?,
|
||||
dialogLayout.setPadding(padding, padding, padding, padding)
|
||||
|
||||
dialogLayout.orientation = LinearLayout.VERTICAL
|
||||
val imageView = PhotoView(this)
|
||||
val imageView = PhotoView(this).apply {
|
||||
// If it seems a lot, try opening an image of A4 format or similar
|
||||
maximumScale = 6.0f
|
||||
}
|
||||
|
||||
val displayMetrics = DisplayMetrics()
|
||||
windowManager.defaultDisplay.getMetrics(displayMetrics)
|
||||
|
Loading…
Reference in New Issue
Block a user