[Android] Audio player activity: Sanity check

Geoffrey Métais git at videolan.org
Thu Feb 14 10:26:06 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 14 10:25:42 2019 +0100| [99841965b23fc612bbf377ce489bc6e4dcb78873] | committer: Geoffrey Métais

Audio player activity: Sanity check

> https://code.videolan.org/videolan/vlc-android/commit/99841965b23fc612bbf377ce489bc6e4dcb78873
---

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
index 0183e2be3..7b44a5c8b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
@@ -428,7 +428,7 @@ public class AudioPlayerContainerActivity extends BaseActivity {
                 case ACTION_SHOW_PLAYER:
                     owner.showAudioPlayerImpl();
                     owner.updateContainerPadding(true);
-                    owner.applyMarginToProgressBar(owner.mBottomSheetBehavior.getPeekHeight());
+                    if (owner.mBottomSheetBehavior != null) owner.applyMarginToProgressBar(owner.mBottomSheetBehavior.getPeekHeight());
                     break;
                 case ACTION_HIDE_PLAYER:
                     removeMessages(ACTION_SHOW_PLAYER);



More information about the Android mailing list