mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
fix a glitch after rotating the device with screen off
This commit is contained in:
parent
3f18ae09c4
commit
0b3c900a02
2 changed files with 5 additions and 1 deletions
|
@ -90,7 +90,7 @@ dependencies {
|
||||||
implementation 'info.androidhive:imagefilters:1.0.7'
|
implementation 'info.androidhive:imagefilters:1.0.7'
|
||||||
implementation 'com.caverock:androidsvg-aar:1.4'
|
implementation 'com.caverock:androidsvg-aar:1.4'
|
||||||
implementation 'com.github.tibbi:gestureviews:a8e8fa8d27'
|
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 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||||
implementation 'com.github.penfeizhou.android.animation:awebp:2.17.0'
|
implementation 'com.github.penfeizhou.android.animation:awebp:2.17.0'
|
||||||
implementation 'com.github.penfeizhou.android.animation:apng:2.17.0'
|
implementation 'com.github.penfeizhou.android.animation:apng:2.17.0'
|
||||||
|
|
|
@ -228,6 +228,10 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
loadImage()
|
loadImage()
|
||||||
} else if (mMedium.isGIF()) {
|
} else if (mMedium.isGIF()) {
|
||||||
loadGif()
|
loadGif()
|
||||||
|
} else if (mIsSubsamplingVisible) {
|
||||||
|
mView.subsampling_view.onGlobalLayout {
|
||||||
|
mView.subsampling_view.resetView()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue