Merge "Undim kids nav icons on a11y focus and click." into tm-qpr-dev am: e51e6446ad am: ff3accd144
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19659547 Change-Id: Ie1d9cf06bf012a9ae596ff1e7cc1240ae50b7e90 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
ee1caf18c6
2 files changed
+49
No files matched your search
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.android.launcher3.taskbar;
|
||||
|
||||
import static android.view.View.AccessibilityDelegate;
|
||||
import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
|
||||
|
||||
import static com.android.launcher3.LauncherAnimUtils.VIEW_TRANSLATE_X;
|
||||
@@ -588,6 +589,26 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
return mHomeButtonAlpha;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AccessibilityDelegate for the home button.
|
||||
*/
|
||||
public void setHomeButtonAccessibilityDelegate(AccessibilityDelegate accessibilityDelegate) {
|
||||
if (mHomeButton == null) {
|
||||
return;
|
||||
}
|
||||
mHomeButton.setAccessibilityDelegate(accessibilityDelegate);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AccessibilityDelegate for the back button.
|
||||
*/
|
||||
public void setBackButtonAccessibilityDelegate(AccessibilityDelegate accessibilityDelegate) {
|
||||
if (mBackButton == null) {
|
||||
return;
|
||||
}
|
||||
mBackButton.setAccessibilityDelegate(accessibilityDelegate);
|
||||
}
|
||||
|
||||
/** Use to set the translationY for the all nav+contextual buttons */
|
||||
public AnimatedFloat getTaskbarNavButtonTranslationY() {
|
||||
return mTaskbarNavButtonTranslationY;
|
||||
|
||||
Reference in new issue
Block a user