Index: ui/file_manager/audio_player/elements/audio_player.js |
diff --git a/ui/file_manager/audio_player/elements/audio_player.js b/ui/file_manager/audio_player/elements/audio_player.js |
index a9945a343e69f94627a2b01a065e3b1074303c19..939865280323d82fc4e5d197fb2fef010469d958 100644 |
--- a/ui/file_manager/audio_player/elements/audio_player.js |
+++ b/ui/file_manager/audio_player/elements/audio_player.js |
@@ -349,6 +349,18 @@ Polymer({ |
}, |
/** |
+ * Notifis the track-list element that the metadata for specified track is |
+ * updated. |
+ * @param {number} index The index of the track whose metadata is updated. |
+ */ |
+ notifyTrackMetadataUpdated: function(index) { |
yoshiki
2016/01/14 11:10:27
nit: should we check if the argument is valid just
fukino
2016/01/14 11:32:35
Added a check for index range. Done.
|
+ this.$.trackList.notifyPath('tracks.' + index + '.title', |
+ this.tracks[index].title); |
+ this.$.trackList.notifyPath('tracks.' + index + '.artist', |
+ this.tracks[index].artist); |
+ }, |
+ |
+ /** |
* Invoked when the audio player is being unloaded. |
*/ |
onPageUnload: function() { |