File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
src/com/android/systemui/recent Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 305305 <!-- Content description of the ringer silent icon in the notification panel for accessibility (not shown on the screen). [CHAR LIMIT=NONE] -->
306306 <string name =" accessibility_ringer_silent" >Ringer silent.</string >
307307
308+ <!-- Content description to tell the user an application has been removed from recents -->
309+ <string name =" accessibility_recents_item_dismissed" ><xliff : g id =" app" example =" Calendar" >%s</xliff : g > dismissed.</string >
310+
308311 <!-- Title of dialog shown when 2G-3G data usage has exceeded limit and has been disabled. [CHAR LIMIT=48] -->
309312 <string name =" data_usage_disabled_dialog_3g_title" >2G-3G data disabled</string >
310313 <!-- Title of dialog shown when 4G data usage has exceeded limit and has been disabled. [CHAR LIMIT=48] -->
Original file line number Diff line number Diff line change 3838import android .view .MotionEvent ;
3939import android .view .View ;
4040import android .view .ViewGroup ;
41+ import android .view .accessibility .AccessibilityEvent ;
4142import android .view .animation .AnimationUtils ;
4243import android .widget .AdapterView ;
4344import android .widget .BaseAdapter ;
@@ -512,6 +513,12 @@ public void handleSwipe(View view) {
512513 final ActivityManager am = (ActivityManager )
513514 mContext .getSystemService (Context .ACTIVITY_SERVICE );
514515 am .removeTask (ad .persistentTaskId , ActivityManager .REMOVE_TASK_KILL_PROCESS );
516+
517+ // Accessibility feedback
518+ setContentDescription (
519+ mContext .getString (R .string .accessibility_recents_item_dismissed , ad .getLabel ()));
520+ sendAccessibilityEvent (AccessibilityEvent .TYPE_VIEW_SELECTED );
521+ setContentDescription (null );
515522 }
516523
517524 private void startApplicationDetailsActivity (String packageName ) {
You can’t perform that action at this time.
0 commit comments