We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9c9cf6 + 261381c commit 9ad680cCopy full SHA for 9ad680c
1 file changed
core/java/com/android/internal/widget/TransportControlView.java
@@ -339,6 +339,13 @@ private void updatePlayPauseState(int state) {
339
final int imageResId;
340
final int imageDescId;
341
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
+
349
case RemoteControlClient.PLAYSTATE_PLAYING:
350
imageResId = com.android.internal.R.drawable.ic_media_pause;
351
imageDescId = com.android.internal.R.string.lockscreen_transport_pause_description;
0 commit comments