Skip to content

Commit

Permalink
Fade out status bar while viewing log
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Dec 18, 2021
1 parent 77439e5 commit 60270de
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ class WebViewFragment : Fragment() {
showTapTargetSequence(view)
}

override fun onResume() {
super.onResume()
requireActivity().window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LOW_PROFILE
}

override fun onPause() {
super.onPause()
requireActivity().window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_VISIBLE
}

private fun setUpWebview() {
webSettings = binding.webview.settings
binding.webview.webViewClient = object : WebViewClient() {
Expand Down

0 comments on commit 60270de

Please sign in to comment.