mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Merge "Make taskbar accessibility announcement when user is in app only." into tm-qpr-dev
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