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

Commit 81531c72 authored by Winson Chung's avatar Winson Chung Committed by Android Git Automerger
Browse files

am 6615b209: Announcing when a task is dismissed (for accessibility). (Bug 9181212)

* commit '6615b20987d56b63a97da44864704d56cfe7be0d':
  Announcing when a task is dismissed (for accessibility). (Bug 9181212)
parents 6edd156c 2b922530
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);
    }