Skip to content

Commit

Permalink
Merge pull request Automattic#461 from ted3x/issue#115
Browse files Browse the repository at this point in the history
Fix issue when system bar didn't disappear on full screen video player
  • Loading branch information
mchowning authored Oct 23, 2022
2 parents 3d85649 + 09e0949 commit 4465157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* Bug Fixes:
* Fixed Help & Feedback buttons being hidden when using text zoom.
([#446](https://github.com/Automattic/pocket-casts-android/pull/446)).
* Fixed when system bar didn't disappear on full screen video player
([#461](https://github.com/Automattic/pocket-casts-android/pull/461)).

7.25
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,12 @@ class VideoFragment : Fragment(), PlayerSeekBar.OnUserSeekListener {

private fun hideSystemUi() {
getInsetsController()?.hide(WindowInsetsCompat.Type.statusBars())
getInsetsController()?.hide(WindowInsetsCompat.Type.navigationBars())
}

private fun showSystemUi() {
getInsetsController()?.show(WindowInsetsCompat.Type.statusBars())
getInsetsController()?.show(WindowInsetsCompat.Type.navigationBars())
}

private fun getInsetsController(): WindowInsetsControllerCompat? {
Expand Down

0 comments on commit 4465157

Please sign in to comment.