Audio Player: Don't update the track list when the list is not changed
commit9a2e0a8a8d6a7c972fb18c0be66c85e498e77425
authoryoshiki <yoshiki@chromium.org>
Fri, 29 Aug 2014 03:34:29 +0000 (28 20:34 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 29 Aug 2014 03:35:54 +0000 (29 03:35 +0000)
tree85468a58f431ac372320dbf87e915dea8d6ad5a4
parentba3229b241c25b90c55fb4e88348d008cd179ff6
Audio Player: Don't update the track list when the list is not changed

Previously, when user clicked the audio file on Files.app, the track list was updated unexpectedly and the current track index was set to the default (the first file) for a very short time just before the index was updated to the selected file. This unexpected change in short period made the playback time reset and caused the issue (crbug.com/395868). This patch fixes this issue.

BUG=395868
TEST=none

Review URL: https://codereview.chromium.org/515443002

Cr-Commit-Position: refs/heads/master@{#292565}
ui/file_manager/file_manager/audio_player/js/audio_player.js