[Android] Do not erase title if param is empty

Geoffrey Métais git at videolan.org
Wed Dec 23 18:14:58 CET 2015


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Dec 23 18:14:11 2015 +0100| [3f61a5bb738d347d2bc47bee7190670118cc51d6] | committer: Geoffrey Métais

Do not erase title if param is empty

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

 .../src/org/videolan/vlc/extensions/ExtensionManagerService.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/extensions/ExtensionManagerService.java b/vlc-android/src/org/videolan/vlc/extensions/ExtensionManagerService.java
index d72172a..d3bb57c 100644
--- a/vlc-android/src/org/videolan/vlc/extensions/ExtensionManagerService.java
+++ b/vlc-android/src/org/videolan/vlc/extensions/ExtensionManagerService.java
@@ -250,7 +250,8 @@ public class ExtensionManagerService extends Service {
             @Override
             public void playUri(Uri uri, String title) throws RemoteException {
                 final MediaWrapper media = new MediaWrapper(uri);
-                media.setTitle(title);
+                if (!TextUtils.isEmpty(title));
+                    media.setTitle(title);
                 mHandler.post(new Runnable() {
                     @Override
                     public void run() {



More information about the Android mailing list