[Android] Filter onRenderersChanged events

Geoffrey Métais git at videolan.org
Thu Mar 8 14:25:24 CET 2018


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

Filter onRenderersChanged events

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

 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