Allow higher zooming levels for caption dialog images (#1672)

main
Ivan Kupalov 5 years ago committed by GitHub
parent 29b4d7aa77
commit 418f090687
  1. 5
      app/src/main/java/com/keylesspalace/tusky/components/compose/dialog/CaptionDialog.kt

@ -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…
Cancel
Save