mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
fixing a crash at uninitialized variable at PhotoFragment
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user