Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b922530 authored by Winson Chung's avatar Winson Chung
Browse files

Announcing when a task is dismissed (for accessibility). (Bug 9181212)

parent eea3c5d7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1006,6 +1006,9 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
    @Override
    public void onTaskViewDismissed(TaskView tv) {
        Task task = tv.getTask();
        // Announce for accessibility
        tv.announceForAccessibility(getContext().getString(R.string.accessibility_recents_item_dismissed,
                tv.getTask().activityLabel));
        // Remove the task from the view
        mStack.removeTask(task);
    }