[Android] OrientationDelegate: close when touch out

Duncan McNamara git at videolan.org
Mon Aug 5 12:04:32 UTC 2024


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Thu Jul 11 16:56:37 2024 +0200| [45979251ecc124da217164db7e4d315424257178] | committer: Nicolas Pomepuy

OrientationDelegate: close when touch out

Touching the screen outside of the delegate should close it, like the
ResizeDelegate.

> https://code.videolan.org/videolan/vlc-android/commit/45979251ecc124da217164db7e4d315424257178
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerOrientationDelegate.kt     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOrientationDelegate.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOrientationDelegate.kt
index 053aa270ce..cd0d11f34b 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOrientationDelegate.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOrientationDelegate.kt
@@ -86,6 +86,7 @@ class VideoPlayerOrientationDelegate(private val player: VideoPlayerActivity) {
                 hideOrientationOverlay()
             }
             orientationList.adapter = orientationAdapter
+            orientationMainView.setOnClickListener { hideOrientationOverlay() }
 
         }
     }



More information about the Android mailing list