fix a glitch after rotating the device with screen off

This commit is contained in:
tibbi 2022-06-17 22:54:11 +02:00
parent 3f18ae09c4
commit 0b3c900a02
2 changed files with 5 additions and 1 deletions

View file

@ -90,7 +90,7 @@ dependencies {
implementation 'info.androidhive:imagefilters:1.0.7'
implementation 'com.caverock:androidsvg-aar:1.4'
implementation 'com.github.tibbi:gestureviews:a8e8fa8d27'
implementation 'com.github.tibbi:subsampling-scale-image-view:65ff7870ed'
implementation 'com.github.tibbi:subsampling-scale-image-view:966657ff5d'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'com.github.penfeizhou.android.animation:awebp:2.17.0'
implementation 'com.github.penfeizhou.android.animation:apng:2.17.0'

View file

@ -228,6 +228,10 @@ class PhotoFragment : ViewPagerFragment() {
loadImage()
} else if (mMedium.isGIF()) {
loadGif()
} else if (mIsSubsamplingVisible) {
mView.subsampling_view.onGlobalLayout {
mView.subsampling_view.resetView()
}
}
}