commit | f6254c594763aa092d041a387a7d2ea9288abb27 | [log] [tgz] |
---|---|---|
author | Anushree Ganjam <ganjam@google.com> | Fri Apr 29 00:46:22 2022 +0000 |
committer | Anushree Ganjam <ganjam@google.com> | Fri Apr 29 23:33:48 2022 +0000 |
tree | 9bacaba6fcb993b0fb8e9b68e2dddea0915c6f90 | |
parent | 8073fc8daf2ab4f88ffdba8242ba062bdba50fa0 [diff] [blame] |
Do not add HOTSEAT_ICONS to visible elements for device type "phone" in ALL_APPS State HOTSEAT_ICONS got added to visible elements for ALL_APPS State in ag/16992837. ============================================================ Phone Before: HotSeat present in view hierarchy - https://hsv.googleplex.com/4906040983289856?node=41 Video: https://b.corp.google.com/issues/228803923#comment9 After: HotSeat not present in view hierarchy - https://hsv.googleplex.com/5379653922455552?node=42 Video: https://b.corp.google.com/issues/228803923#comment11 ============================================================ Tablets I couldn't test this implementation on tablet. But I have verified on a phone locally by adding HOTSEAT_ICONS to visible elements and then verifying "IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS" get set and hotseat icons are not focusable in all apps. Video : https://b.corp.google.com/issues/228803923#comment14 ============================================================ Bug: 228803923 Bug: 227565451 Test: Manual. See the video attached in bug. Change-Id: I055e3bb61c8cfd240e0fe1000fe3a391a150f6d1
diff --git a/src/com/android/launcher3/LauncherState.java b/src/com/android/launcher3/LauncherState.java index baee49f..c0bcaa3 100644 --- a/src/com/android/launcher3/LauncherState.java +++ b/src/com/android/launcher3/LauncherState.java
@@ -80,6 +80,9 @@ public static final int FLAG_CLOSE_POPUPS = BaseState.getFlag(6); public static final int FLAG_OVERVIEW_UI = BaseState.getFlag(7); + // Flag indicating that hotseat and its contents are not accessible. + public static final int FLAG_HOTSEAT_INACCESSIBLE = BaseState.getFlag(8); + public static final float NO_OFFSET = 0; public static final float NO_SCALE = 1;