From c57b3edac5e669a4d8fc970dd91c40c03041caca Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 23 Apr 2020 21:21:55 +0200 Subject: [PATCH] minor code style update --- .../gallery/pro/fragments/VideoFragment.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt index d2142bfc1..d3a2a8616 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt @@ -479,8 +479,8 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S private fun checkIfPanorama() { try { val fis = FileInputStream(File(mMedium.path)) - fis.use { fis -> - context!!.parseFileChannel(mMedium.path, fis.channel, 0, 0, 0) { + fis.use { + context!!.parseFileChannel(mMedium.path, it.channel, 0, 0, 0) { mIsPanorama = true } } @@ -591,8 +591,9 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S return } - if (mExoPlayer == null) + if (mExoPlayer == null) { return + } if (mIsPlaying) { mExoPlayer!!.playWhenReady = true