Skip to content

Commit 9ad680c

Browse files
jmtriviAndroid (Google) Code Review
authored andcommitted
Merge "Fix 5380695 Lockscreen transport control must reflect error state" into ics-mr0
2 parents b9c9cf6 + 261381c commit 9ad680c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/java/com/android/internal/widget/TransportControlView.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,13 @@ private void updatePlayPauseState(int state) {
339339
final int imageResId;
340340
final int imageDescId;
341341
switch (state) {
342+
case RemoteControlClient.PLAYSTATE_ERROR:
343+
imageResId = com.android.internal.R.drawable.stat_sys_warning;
344+
// TODO use more specific image description string for warning, but here the "play"
345+
// message is still valid because this button triggers a play command.
346+
imageDescId = com.android.internal.R.string.lockscreen_transport_play_description;
347+
break;
348+
342349
case RemoteControlClient.PLAYSTATE_PLAYING:
343350
imageResId = com.android.internal.R.drawable.ic_media_pause;
344351
imageDescId = com.android.internal.R.string.lockscreen_transport_pause_description;

0 commit comments

Comments
 (0)