[Android] Accessibility: hide the video player hud when taping the back button

Nicolas Pomepuy git at videolan.org
Fri Jun 3 11:30:22 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Jun  3 07:11:39 2022 +0200| [976565a0b254421568076a45590b8b0eac252b72] | committer: Nicolas Pomepuy

Accessibility: hide the video player hud when taping the back button

> https://code.videolan.org/videolan/vlc-android/commit/976565a0b254421568076a45590b8b0eac252b72
---

 .../vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index 680f01af4..0dc0f3a1a 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -952,7 +952,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
             service?.playlistManager?.videoStatsOn?.postValue(false)
         } else if (overlayDelegate.isBookmarkShown()) {
             overlayDelegate.hideBookmarks()
-        } else if (AndroidDevices.isAndroidTv && isShowing && !isLocked) {
+        } else if ((AndroidDevices.isAndroidTv || isTalkbackIsEnabled()) && isShowing && !isLocked) {
             overlayDelegate.hideOverlay(true)
         } else {
             exitOK()



More information about the Android mailing list