summaryrefslogtreecommitdiffstats
path: root/cmds/media/src
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2014-07-29 13:10:17 -0700
committerRoboErik <epastern@google.com>2014-08-05 14:30:27 -0700
commit75847b98f39e521a57042c50e69be9e142788d32 (patch)
treeb86d2a0657fc34724ac0a48a378833d51855263b /cmds/media/src
parentb0d767dcf17dd393646b8fc3e8c9f46dfe12e230 (diff)
downloadframeworks_base-75847b98f39e521a57042c50e69be9e142788d32.zip
frameworks_base-75847b98f39e521a57042c50e69be9e142788d32.tar.gz
frameworks_base-75847b98f39e521a57042c50e69be9e142788d32.tar.bz2
Add display metadata and change strings to CharSequences
This adds some fields for display purposes to MediaMetadata and also makes the default for all text CharSequence instead of String. Also adds a hidden method for getting a Description for the metadata. bug: 11708293 Change-Id: I0ed58d9ac3aeff41325c4ccf5fed0539bbf03b4d
Diffstat (limited to 'cmds/media/src')
-rw-r--r--cmds/media/src/com/android/commands/media/Media.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/media/src/com/android/commands/media/Media.java b/cmds/media/src/com/android/commands/media/Media.java
index 7757b91..d9faf4c 100644
--- a/cmds/media/src/com/android/commands/media/Media.java
+++ b/cmds/media/src/com/android/commands/media/Media.java
@@ -191,7 +191,7 @@ public class Media extends BaseCommand {
@Override
public void onMetadataChanged(MediaMetadata metadata) {
String mmString = metadata == null ? null : "title=" + metadata
- .getString(MediaMetadata.METADATA_KEY_TITLE);
+ .getDescription();
System.out.println("onMetadataChanged " + mmString);
}