mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
minor style edits
This commit is contained in:
@ -91,11 +91,10 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
|||||||
super.setMenuVisibility(menuVisible)
|
super.setMenuVisibility(menuVisible)
|
||||||
mIsFragmentVisible = menuVisible
|
mIsFragmentVisible = menuVisible
|
||||||
if (menuVisible) {
|
if (menuVisible) {
|
||||||
if (context != null && context.config.autoplayVideos) {
|
if (context?.config?.autoplayVideos == true) {
|
||||||
playVideo()
|
playVideo()
|
||||||
}
|
}
|
||||||
} else {
|
} else if (mIsPlaying) {
|
||||||
if (mIsPlaying)
|
|
||||||
pauseVideo()
|
pauseVideo()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -241,7 +240,7 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
|||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
if (activity != null && !activity.isChangingConfigurations) {
|
if (activity?.isChangingConfigurations == false) {
|
||||||
cleanup()
|
cleanup()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user