mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-27 06:57:59 +01:00
fixing a crash at uninitialized variable at PhotoFragment
This commit is contained in:
parent
402eb61f79
commit
323d9f999d
1 changed files with 4 additions and 0 deletions
|
@ -251,6 +251,10 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||||
super.onConfigurationChanged(newConfig)
|
super.onConfigurationChanged(newConfig)
|
||||||
|
|
||||||
|
if (!mWasInit) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// avoid GIFs being skewed, played in wrong aspect ratio
|
// avoid GIFs being skewed, played in wrong aspect ratio
|
||||||
if (mMedium.isGIF()) {
|
if (mMedium.isGIF()) {
|
||||||
mView.onGlobalLayout {
|
mView.onGlobalLayout {
|
||||||
|
|
Loading…
Reference in a new issue