mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Merge "Make taskbar accessibility announcement when user is in app only." into tm-qpr-dev am: 6fcdfb166d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22244591 Change-Id: I7c147e306d91535170485c8cd9c0d0492e8083e7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -600,7 +600,11 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
|
||||
if (!mIsStashed) {
|
||||
tryStartTaskbarTimeout();
|
||||
}
|
||||
mControllers.taskbarViewController.announceForAccessibility();
|
||||
|
||||
// only announce if we are actually animating
|
||||
if (duration > 0 && isInApp()) {
|
||||
mControllers.taskbarViewController.announceForAccessibility();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user