mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 14:28:00 +01:00
updating to the latest SubsamplingScaleImageView
This commit is contained in:
parent
e3678a5f80
commit
c7c25fc17b
2 changed files with 3 additions and 4 deletions
|
@ -71,7 +71,7 @@ dependencies {
|
||||||
implementation 'com.squareup.picasso:picasso:2.71828'
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
||||||
implementation 'com.caverock:androidsvg-aar:1.3'
|
implementation 'com.caverock:androidsvg-aar:1.3'
|
||||||
implementation 'com.github.tibbi:gestureviews:57844bb1d5'
|
implementation 'com.github.tibbi:gestureviews:57844bb1d5'
|
||||||
implementation 'com.github.tibbi:subsampling-scale-image-view:bf097548ba'
|
implementation 'com.github.tibbi:subsampling-scale-image-view:e1fba2b780'
|
||||||
kapt 'com.github.bumptech.glide:compiler:4.8.0' // keep it here too, not just in Commons, else loading SVGs wont work
|
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'
|
kapt 'androidx.room:room-compiler:2.0.0'
|
||||||
|
|
|
@ -23,7 +23,6 @@ import com.bumptech.glide.load.engine.GlideException
|
||||||
import com.bumptech.glide.request.RequestListener
|
import com.bumptech.glide.request.RequestListener
|
||||||
import com.bumptech.glide.request.RequestOptions
|
import com.bumptech.glide.request.RequestOptions
|
||||||
import com.bumptech.glide.request.target.Target
|
import com.bumptech.glide.request.target.Target
|
||||||
import com.davemorrissey.labs.subscaleview.ImageSource
|
|
||||||
import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
|
import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
|
||||||
import com.davemorrissey.labs.subscaleview.decoder.DecoderFactory
|
import com.davemorrissey.labs.subscaleview.decoder.DecoderFactory
|
||||||
import com.davemorrissey.labs.subscaleview.decoder.ImageDecoder
|
import com.davemorrissey.labs.subscaleview.decoder.ImageDecoder
|
||||||
|
@ -448,8 +447,8 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
beVisible()
|
beVisible()
|
||||||
isQuickScaleEnabled = config.oneFingerZoom
|
isQuickScaleEnabled = config.oneFingerZoom
|
||||||
isOneToOneZoomEnabled = config.allowOneToOneZoom
|
isOneToOneZoomEnabled = config.allowOneToOneZoom
|
||||||
setOrientation(rotation)
|
orientation = rotation
|
||||||
setImage(ImageSource.uri(path))
|
setImage(path)
|
||||||
onImageEventListener = object : SubsamplingScaleImageView.OnImageEventListener {
|
onImageEventListener = object : SubsamplingScaleImageView.OnImageEventListener {
|
||||||
override fun onImageLoaded() {
|
override fun onImageLoaded() {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue