[Android] Save display name on media update
Geoffrey Métais
git at videolan.org
Thu Jun 2 12:25:08 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jun 2 12:23:56 2016 +0200| [c0fdeabe4a193fcb081105e38ae894866f28bfdd] | committer: Geoffrey Métais
Save display name on media update
> https://code.videolan.org/videolan/vlc-android/commit/c0fdeabe4a193fcb081105e38ae894866f28bfdd
---
vlc-android/src/org/videolan/vlc/media/MediaWrapper.java | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/media/MediaWrapper.java b/vlc-android/src/org/videolan/vlc/media/MediaWrapper.java
index e0f7bd1..5d406e5 100644
--- a/vlc-android/src/org/videolan/vlc/media/MediaWrapper.java
+++ b/vlc-android/src/org/videolan/vlc/media/MediaWrapper.java
@@ -26,7 +26,6 @@ import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import android.text.TextUtils;
-import android.util.Log;
import org.videolan.libvlc.Media;
import org.videolan.libvlc.Media.Meta;
@@ -256,13 +255,11 @@ public class MediaWrapper implements Parcelable {
mDiscNumber = Integer.parseInt(discNumber);
} catch (NumberFormatException ignored) {}
}
- Log.d(TAG, "Title " + mTitle);
- Log.d(TAG, "Artist " + mArtist);
- Log.d(TAG, "Genre " + mGenre);
- Log.d(TAG, "Album " + mAlbum);
}
public void updateMeta(MediaPlayer mediaPlayer) {
+ if (!TextUtils.isEmpty(mTitle) && TextUtils.isEmpty(mDisplayTitle))
+ mDisplayTitle = mTitle;
final Media media = mediaPlayer.getMedia();
if (media == null)
return;
More information about the Android
mailing list