mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-24 15:30:57 +01:00
updating subsampling scale image view
This commit is contained in:
parent
7d95c8ab65
commit
e4ac69004d
@ -75,7 +75,7 @@ dependencies {
|
||||
implementation 'com.squareup.picasso:picasso:2.71828'
|
||||
implementation 'com.caverock:androidsvg-aar:1.3'
|
||||
implementation 'com.github.tibbi:gestureviews:985ba285fb'
|
||||
implementation 'com.github.tibbi:subsampling-scale-image-view:03df52339d'
|
||||
implementation 'com.github.tibbi:subsampling-scale-image-view:224582bc99'
|
||||
kapt 'com.github.bumptech.glide:compiler:4.8.0' // keep it here too, not just in Commons, else loading SVGs wont work
|
||||
|
||||
kapt 'androidx.room:room-compiler:2.0.0'
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user