[Android] Accessibility: fix explore by touch issue
Nicolas Pomepuy
git at videolan.org
Fri Jun 3 11:30:22 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Jun 2 15:55:37 2022 +0200| [37ba919724e02dc0aa2902a4481e42de8fa99b9d] | committer: Nicolas Pomepuy
Accessibility: fix explore by touch issue
> https://code.videolan.org/videolan/vlc-android/commit/37ba919724e02dc0aa2902a4481e42de8fa99b9d
---
.../vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 3 ++-
1 file changed, 2 insertions(+), 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 c5cfe94ce..680f01af4 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
@@ -930,7 +930,8 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
}
override fun dispatchGenericMotionEvent(event: MotionEvent): Boolean {
- return !isLoading && ::touchDelegate.isInitialized && touchDelegate.dispatchGenericMotionEvent(event)
+ val result = !isLoading && ::touchDelegate.isInitialized && touchDelegate.dispatchGenericMotionEvent(event)
+ return if (result) true else super.dispatchGenericMotionEvent(event)
}
override fun onBackPressed() {
More information about the Android
mailing list