Merge "Fix 5380695 Lockscreen transport control must reflect error state" into ics-mr0
This commit is contained in:
committed by
Android (Google) Code Review
commit
9ad680ca2b
@@ -339,6 +339,13 @@ public class TransportControlView extends FrameLayout implements OnClickListener
|
||||
final int imageResId;
|
||||
final int imageDescId;
|
||||
switch (state) {
|
||||
case RemoteControlClient.PLAYSTATE_ERROR:
|
||||
imageResId = com.android.internal.R.drawable.stat_sys_warning;
|
||||
// TODO use more specific image description string for warning, but here the "play"
|
||||
// message is still valid because this button triggers a play command.
|
||||
imageDescId = com.android.internal.R.string.lockscreen_transport_play_description;
|
||||
break;
|
||||
|
||||
case RemoteControlClient.PLAYSTATE_PLAYING:
|
||||
imageResId = com.android.internal.R.drawable.ic_media_pause;
|
||||
imageDescId = com.android.internal.R.string.lockscreen_transport_pause_description;
|
||||
|
||||
Reference in New Issue
Block a user