File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
core/java/com/android/internal/widget Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments