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..7e3dfd47a0a111d785e8c38679e96f0d33579178 100644 |
--- a/ui/file_manager/audio_player/elements/audio_player.js |
+++ b/ui/file_manager/audio_player/elements/audio_player.js |
@@ -349,6 +349,21 @@ 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) { |
+ if (index < 0 || index >= this.tracks.length) |
+ return; |
+ |
+ 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() { |