[Android] Filter onRenderersChanged events

Geoffrey Métais git at videolan.org
Fri Mar 30 16:51:03 CEST 2018


vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Mar  8 14:23:25 2018 +0100| [495b1b93b9ba407db0f0ba7a0db92e2fa4b01746] | committer: Geoffrey Métais

Filter onRenderersChanged events

(cherry picked from commit 256d9334e619bc5b025913be7e4e09db8bfaa6fd)

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java b/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java
index acc95577a..61fd3d478 100644
--- a/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/ContentActivity.java
@@ -241,6 +241,7 @@ public class ContentActivity extends AudioPlayerContainerActivity implements Sea
 
     @Override
     public void onRenderersChanged(boolean empty) {
+        if (showRenderers != empty) return;
         showRenderers = !empty;
         if (empty && !AndroidDevices.isChromeBook) {
             RendererDelegate.INSTANCE.selectRenderer(null);



More information about the Android mailing list