Skip to content

Commit

Permalink
Jelly: Don't change immersive mode on focus change
Browse files Browse the repository at this point in the history
Will simply revert to a "standard" mode

Change-Id: I97a3bb7de5b8ec04e720100b42a5a96a7f40a1ec
  • Loading branch information
luca020400 committed Nov 2, 2024
1 parent d2a8b78 commit ca302bb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/src/main/java/org/lineageos/jelly/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,6 @@ class MainActivity : WebViewExtActivity(), SharedPreferences.OnSharedPreferenceC
}
}

override fun onWindowFocusChanged(hasFocus: Boolean) {
super.onWindowFocusChanged(hasFocus)
setImmersiveMode(hasFocus && customView != null)
}

override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) {
when (key) {
"key_reach_mode" -> setUiMode()
Expand Down

0 comments on commit ca302bb

Please sign in to comment.