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

Commit 2a909e07 authored by Winson Chung's avatar Winson Chung Committed by Android Git Automerger
Browse files

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

* commit '206c4deb69d209a71ea2f2af5a2eb69039a864c8':
  Announcing when a task is dismissed (for accessibility). (Bug 9181212)
parents 09002ed8 81531c72
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1006,6 +1006,9 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
    @Override
    @Override
    public void onTaskViewDismissed(TaskView tv) {
    public void onTaskViewDismissed(TaskView tv) {
        Task task = tv.getTask();
        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
        // Remove the task from the view
        mStack.removeTask(task);
        mStack.removeTask(task);
    }
    }