[Android] Fix UninitializedPropertyAccessException in the video player
Nicolas Pomepuy
git at videolan.org
Thu Feb 24 12:35:28 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Feb 24 13:08:18 2022 +0100| [904f7abbc2fe2835ce9146de1e6984c61dc9bb8c] | committer: Nicolas Pomepuy
Fix UninitializedPropertyAccessException in the video player
> https://code.videolan.org/videolan/vlc-android/commit/904f7abbc2fe2835ce9146de1e6984c61dc9bb8c
---
.../src/org/videolan/vlc/gui/video/VideoPlayerResizeDelegate.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerResizeDelegate.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerResizeDelegate.kt
index e8e51e7ed..7f7741ed1 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerResizeDelegate.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerResizeDelegate.kt
@@ -63,7 +63,7 @@ class VideoPlayerResizeDelegate(private val player: VideoPlayerActivity) {
* Check if the resize overlay is currently shown
* @return true if it's shown
*/
- fun isShowing() = resizeMainView.visibility == View.VISIBLE
+ fun isShowing() = ::resizeMainView.isInitialized && resizeMainView.visibility == View.VISIBLE
/**
* Show the resize overlay. Inflate it if it's not yet
More information about the Android
mailing list