From 5f64a02763f3fbf6da7545b3d2e6b54b28b741e3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 30 Nov 2016 23:15:22 +0100 Subject: [PATCH] do not hide the system UI at initiating fullscreen photo/video --- .../simplemobiletools/gallery/activities/PhotoVideoActivity.kt | 3 +-- .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt index f73ceed32..afbc083a7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt @@ -17,7 +17,7 @@ import com.simplemobiletools.gallery.models.Medium import java.io.File open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentClickListener { - private var mIsFullScreen = true + private var mIsFullScreen = false lateinit var mUri: Uri lateinit var mFragment: ViewPagerFragment @@ -42,7 +42,6 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentClic mFragment.arguments = bundle supportFragmentManager.beginTransaction().replace(R.id.fragment_holder, mFragment).commit() } - hideSystemUI() if (mUri.scheme == "content") { val proj = arrayOf(MediaStore.Images.Media.TITLE) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index 65f536492..0ebe28067 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -81,10 +81,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View } mPos = 0 - mIsFullScreen = true + mIsFullScreen = false mToBeDeleted = "" mBeingDeleted = "" - hideSystemUI() scanPath(mPath) {} addUndoMargin()