mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-03-02 02:27:43 +01:00
fixing a crash at uninitialized variable at PhotoFragment
This commit is contained in:
parent
402eb61f79
commit
323d9f999d
@ -251,6 +251,10 @@ class PhotoFragment : ViewPagerFragment() {
|
||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||
super.onConfigurationChanged(newConfig)
|
||||
|
||||
if (!mWasInit) {
|
||||
return
|
||||
}
|
||||
|
||||
// avoid GIFs being skewed, played in wrong aspect ratio
|
||||
if (mMedium.isGIF()) {
|
||||
mView.onGlobalLayout {
|
||||
|
Loading…
x
Reference in New Issue
Block a user