File tree Expand file tree Collapse file tree
java/com/android/internal/widget Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -336,20 +336,27 @@ private void updatePlayPauseState(int state) {
336336 if (state == mPlayState ) {
337337 return ;
338338 }
339+ final int imageResId ;
340+ final int imageDescId ;
339341 switch (state ) {
340342 case RemoteControlClient .PLAYSTATE_PLAYING :
341- mBtnPlay .setImageResource (com .android .internal .R .drawable .ic_media_pause );
343+ imageResId = com .android .internal .R .drawable .ic_media_pause ;
344+ imageDescId = com .android .internal .R .string .lockscreen_transport_pause_description ;
342345 break ;
343346
344347 case RemoteControlClient .PLAYSTATE_BUFFERING :
345- mBtnPlay .setImageResource (com .android .internal .R .drawable .ic_media_stop );
348+ imageResId = com .android .internal .R .drawable .ic_media_stop ;
349+ imageDescId = com .android .internal .R .string .lockscreen_transport_stop_description ;
346350 break ;
347351
348352 case RemoteControlClient .PLAYSTATE_PAUSED :
349353 default :
350- mBtnPlay .setImageResource (com .android .internal .R .drawable .ic_media_play );
354+ imageResId = com .android .internal .R .drawable .ic_media_play ;
355+ imageDescId = com .android .internal .R .string .lockscreen_transport_play_description ;
351356 break ;
352357 }
358+ mBtnPlay .setImageResource (imageResId );
359+ mBtnPlay .setContentDescription (getResources ().getString (imageDescId ));
353360 mPlayState = state ;
354361 }
355362
Original file line number Diff line number Diff line change 6666 android : src =" @drawable/ic_media_rew"
6767 android : clickable =" true"
6868 android : background =" ?android:attr/selectableItemBackground"
69- android : padding =" 10dip" />
69+ android : padding =" 10dip"
70+ android : contentDescription =" @string/lockscreen_transport_prev_description" />
7071 </FrameLayout >
7172 <FrameLayout
7273 android : layout_width =" wrap_content"
8081 android : clickable =" true"
8182 android : src =" @drawable/ic_media_play"
8283 android : background =" ?android:attr/selectableItemBackground"
83- android : padding =" 10dip" />
84+ android : padding =" 10dip"
85+ android : contentDescription =" @string/lockscreen_transport_play_description" />
8486 </FrameLayout >
8587 <FrameLayout
8688 android : layout_width =" wrap_content"
9496 android : clickable =" true"
9597 android : src =" @drawable/ic_media_ff"
9698 android : background =" ?android:attr/selectableItemBackground"
97- android : padding =" 10dip" />
99+ android : padding =" 10dip"
100+ android : contentDescription =" @string/lockscreen_transport_next_description" />
98101 </FrameLayout >
99102 </LinearLayout >
100103 </LinearLayout >
Original file line number Diff line number Diff line change 953953 social updates from your friends. Malicious apps can use this to pretend to be a friend
954954 and trick you into revealing passwords or other confidential information.</string >
955955
956-
956+
957957 <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
958958 <string name =" permlab_readCalendar" >read calendar events plus confidential information</string >
959959 <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
18311831 <string name =" lockscreen_permanent_disabled_sim_instructions" >Your SIM card is permanently disabled.\n
18321832 Please contact your wireless service provider to obtain another SIM card.</string >
18331833
1834+ <!-- Shown on transport control of lockscreen. Pressing button goes to previous track. -->
1835+ <string name =" lockscreen_transport_prev_description" >Previous track button</string >
1836+ <!-- Shown on transport control of lockscreen. Pressing button goes to next track. -->
1837+ <string name =" lockscreen_transport_next_description" >Next track button</string >
1838+ <!-- Shown on transport control of lockscreen. Pressing button pauses playback -->
1839+ <string name =" lockscreen_transport_pause_description" >Pause button</string >
1840+ <!-- Shown on transport control of lockscreen. Pressing button pauses playback -->
1841+ <string name =" lockscreen_transport_play_description" >Play button</string >
1842+ <!-- Shown on transport control of lockscreen. Pressing button pauses playback -->
1843+ <string name =" lockscreen_transport_stop_description" >Stop button</string >
1844+
18341845 <!-- Shown in the lock screen when there is emergency calls only mode. -->
18351846 <string name =" emergency_calls_only" msgid =" 2485604591272668370" >Emergency calls only</string >
18361847
You can’t perform that action at this time.
0 commit comments