Adding a carent in the scrim

> Caret is only visible when the accessibility is enabled
> It is visible in NOTMAL and OVERVIEW state and moves out of the
  scrim along with the scrim.
> Acts as an accessible target for various options

Bug: 78172350
Bug: 79215734
Change-Id: I8a968b67e36901859649546295f6491d49cc9ce9
This commit is contained in:
Sunny Goyal
2018-05-09 08:42:24 -07:00
parent 578890ad93
commit ef39540dde
17 changed files with 254 additions and 316 deletions

View File

@@ -92,9 +92,9 @@ public class OverviewState extends LauncherState {
@Override
public int getVisibleElements(Launcher launcher) {
if (launcher.getDeviceProfile().isVerticalBarLayout()) {
return DRAG_HANDLE_INDICATOR;
return 0;
} else {
return HOTSEAT_SEARCH_BOX | DRAG_HANDLE_INDICATOR |
return HOTSEAT_SEARCH_BOX |
(launcher.getAppsView().getFloatingHeaderView().hasVisibleContent()
? ALL_APPS_HEADER_EXTRA : HOTSEAT_ICONS);
}