Commit a3de9084 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

hide/show status bar for photo view

parent 008819d4
......@@ -42,6 +42,17 @@ class PhotoScreenController :
@BindView(R.id.photosPreviewSlider)
lateinit var slider: PhotoPreviewSlider
override fun onAttach(view: View) {
tempSystemUiFlag = activity?.window?.decorView?.systemUiVisibility
activity?.window?.decorView?.systemUiVisibility = View.SYSTEM_UI_FLAG_FULLSCREEN
super.onAttach(view)
}
private var tempSystemUiFlag : Int? = null
override fun onDetach(view: View) {
activity?.window?.decorView?.systemUiVisibility = tempSystemUiFlag?:View.SYSTEM_UI_FLAG_LAYOUT_STABLE
super.onDetach(view)
}
private fun bindRecycler() {
photoViewPager.isNestedScrollingEnabled = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment