* commit '26a4309492f5af6828738a469ad8f18f42c44a61': Set the metadata rating correctly in RCC
This commit is contained in:
@@ -535,6 +535,21 @@ import java.lang.IllegalArgumentException;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized MetadataEditor putObject(int key, Object object)
|
||||
throws IllegalArgumentException {
|
||||
super.putObject(key, object);
|
||||
if (mMetadataBuilder != null &&
|
||||
(key == MediaMetadataEditor.RATING_KEY_BY_USER ||
|
||||
key == MediaMetadataEditor.RATING_KEY_BY_OTHERS)) {
|
||||
String metadataKey = MediaMetadata.getKeyFromMetadataEditorKey(key);
|
||||
if (metadataKey != null) {
|
||||
mMetadataBuilder.putRating(metadataKey, (Rating) object);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears all the metadata that has been set since the MetadataEditor instance was created
|
||||
* (with {@link RemoteControlClient#editMetadata(boolean)}).
|
||||
|
||||
Reference in New Issue
Block a user