updating subsampling scale image view

This commit is contained in:
tibbi
2019-02-06 18:00:33 +01:00
parent 7d95c8ab65
commit e4ac69004d
2 changed files with 1 additions and 7 deletions

View File

@ -462,9 +462,6 @@ class PhotoFragment : ViewPagerFragment() {
orientation = rotation
setImage(path)
onImageEventListener = object : SubsamplingScaleImageView.OnImageEventListener {
override fun onImageLoaded() {
}
override fun onReady() {
background = ColorDrawable(if (config.blackBackground) Color.BLACK else config.backgroundColor)
val useWidth = if (mImageOrientation == ORIENTATION_ROTATE_90 || mImageOrientation == ORIENTATION_ROTATE_270) sHeight else sWidth
@ -473,9 +470,6 @@ class PhotoFragment : ViewPagerFragment() {
mOriginalSubsamplingScale = scale
}
override fun onTileLoadError(e: Exception) {
}
override fun onImageLoadError(e: Exception) {
mView.gestures_view.controller.settings.isZoomEnabled = true
background = ColorDrawable(Color.TRANSPARENT)