[Android] Do not show system UI volume bar in video player

Geoffrey Métais git at videolan.org
Thu Jul 20 16:38:01 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jul 20 16:37:19 2017 +0200| [bbc7c4a2069a0a9c29a6c513dd7250334a315c7c] | committer: Geoffrey Métais

Do not show system UI volume bar in video player

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index ccd54898b..0e522ebf3 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2251,7 +2251,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
          * We don't want to always show the default UI volume, so show it only when volume is not set. */
         int newVol = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
         if (vol != newVol)
-            mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, vol, AudioManager.FLAG_SHOW_UI);
+            mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, vol, 0);
 
         mTouchAction = TOUCH_VOLUME;
         vol = vol * 100 / mAudioMax;



More information about the Android mailing list