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

Commit 4661854d authored by Jagrut Desai's avatar Jagrut Desai
Browse files

Make taskbar accessibility announcement when user is in app only.

Test: Manual
Bug: 265099829
Change-Id: I9d90ed7ae3479cf51b261bba63aedccf515bd2c5
parent 085c5386
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:focusable="true"
        android:importantForAccessibility="yes"
        android:forceHasOverlappingRendering="false"
        android:layout_gravity="bottom"
        android:layout_marginBottom="@dimen/transient_taskbar_bottom_margin"
+5 −1
Original line number Diff line number Diff line
@@ -600,8 +600,12 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
                if (!mIsStashed) {
                    tryStartTaskbarTimeout();
                }

                // only announce if we are actually animating
                if (duration > 0 && isInApp()) {
                    mControllers.taskbarViewController.announceForAccessibility();
                }
            }
        });
    }