[Android] Don't show audioplayer tips if playing on renderer

Geoffrey Métais git at videolan.org
Fri Jul 12 14:39:12 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jul 12 11:51:33 2019 +0200| [6b30f856a237ac1801fa614c990699577e28cbda] | committer: Geoffrey Métais

Don't show audioplayer tips if playing on renderer

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
index c0a61f34b..0288ca6fa 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
@@ -201,7 +201,7 @@ open class AudioPlayerContainerActivity : BaseActivity() {
      */
     @SuppressLint("RestrictedApi")
     fun showTipViewIfNeeded(stubId: Int, settingKey: String) {
-        if (BuildConfig.DEBUG) return
+        if (BuildConfig.DEBUG || PlaybackService.hasRenderer()) return
         val vsc = findViewById<View>(stubId)
         if (vsc != null && !settings.getBoolean(settingKey, false) && !Settings.showTvUi) {
             val v = (vsc as ViewStubCompat).inflate()



More information about the Android mailing list