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_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
android:focusable="true"
|
||||||
|
android:importantForAccessibility="yes"
|
||||||
android:forceHasOverlappingRendering="false"
|
android:forceHasOverlappingRendering="false"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:layout_marginBottom="@dimen/transient_taskbar_bottom_margin"
|
android:layout_marginBottom="@dimen/transient_taskbar_bottom_margin"
|
||||||
|
|||||||
@@ -600,7 +600,11 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
|
|||||||
if (!mIsStashed) {
|
if (!mIsStashed) {
|
||||||
tryStartTaskbarTimeout();
|
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