Skip to content

Commit

Permalink
Prevent system UI from being hidden incorrectly while paging media.
Browse files Browse the repository at this point in the history
  • Loading branch information
clark-signal authored and alex-signal committed Jan 11, 2023
1 parent 1d2fbf0 commit 6120902
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ class MediaPreviewV2Fragment : LoggingFragment(R.layout.fragment_media_preview_v
binding.mediaPager.registerOnPageChangeCallback(object : OnPageChangeCallback() {
override fun onPageSelected(position: Int) {
super.onPageSelected(position)
if (position != viewModel.currentPosition) {
debouncer.clear()
fullscreenHelper.showSystemUI()
}
viewModel.setCurrentPage(position)
}
})
Expand Down

0 comments on commit 6120902

Please sign in to comment.