Allow higher zooming levels for caption dialog images (#1672)
This commit is contained in:
parent
11a4de858c
commit
5945700c1b
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue