[Android] Fix NullPointerException
Nicolas Pomepuy
git at videolan.org
Tue Jun 30 14:06:25 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jun 29 12:16:36 2020 +0200| [ebb9eb41d14e84b7cecd41d43272491cbbbcadb1] | committer: Nicolas Pomepuy
Fix NullPointerException
> https://code.videolan.org/videolan/vlc-android/commit/ebb9eb41d14e84b7cecd41d43272491cbbbcadb1
---
.../vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 c967f6241..b4d1fb123 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
@@ -2212,8 +2212,8 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
visibility = visibility or View.SYSTEM_UI_FLAG_VISIBLE or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
}
- player_ui_container.setPadding(0, 0, 0, 0)
- player_ui_container.fitsSystemWindows = !isLocked
+ player_ui_container?.setPadding(0, 0, 0, 0)
+ player_ui_container?.fitsSystemWindows = !isLocked
if (AndroidDevices.hasNavBar)
visibility = visibility or navbar
More information about the Android
mailing list