[Android] Fix chromecast device name

diegofn git at videolan.org
Mon May 6 16:14:14 CEST 2019


vlc-android | branch: master | diegofn <diegofn at me.com> | Sun Mar 17 16:30:07 2019 -0500| [085cb97329e83de7c0f3608a8bcbc210fb088dc1] | committer: Geoffrey Métais

Fix chromecast device name

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

 libvlc/src/org/videolan/libvlc/RendererItem.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvlc/src/org/videolan/libvlc/RendererItem.java b/libvlc/src/org/videolan/libvlc/RendererItem.java
index ed8de7691..30da2e1e2 100644
--- a/libvlc/src/org/videolan/libvlc/RendererItem.java
+++ b/libvlc/src/org/videolan/libvlc/RendererItem.java
@@ -20,7 +20,7 @@ public class RendererItem extends VLCObject<RendererItem.Event> {
     RendererItem(String name, String type, String iconUrl, int flags, long ref) {
         final int index = name.lastIndexOf('-');
         this.name = name;
-        this.displayName = index == -1 ? name : name.substring(0, index).replace('-', ' ');
+        this.displayName = index == -1 ? name : name.replace('-', ' ');
         this.type = type;
         this.iconUrl = iconUrl;
         this.flags = flags;



More information about the Android mailing list