Separate some elements to set visibility separately
Added entries for:
- All apps header extra content
- Hotseat extra content
Change-Id: I47c4ccfe3b54fd47cbbee88698ed045611e3e92d
diff --git a/src/com/android/launcher3/LauncherState.java b/src/com/android/launcher3/LauncherState.java
index d5a2120..6185844 100644
--- a/src/com/android/launcher3/LauncherState.java
+++ b/src/com/android/launcher3/LauncherState.java
@@ -46,9 +46,11 @@
* Note that workspace is not included here as in that case, we animate individual pages
*/
public static final int NONE = 0;
- public static final int HOTSEAT = 1 << 0;
- public static final int ALL_APPS_HEADER = 1 << 1;
- public static final int ALL_APPS_CONTENT = 1 << 2;
+ public static final int HOTSEAT_ICONS = 1 << 0;
+ public static final int HOTSEAT_EXTRA = 1 << 1; // e.g. a search box
+ public static final int ALL_APPS_HEADER = 1 << 2;
+ public static final int ALL_APPS_HEADER_EXTRA = 1 << 3; // e.g. app predictions
+ public static final int ALL_APPS_CONTENT = 1 << 4;
protected static final int FLAG_SHOW_SCRIM = 1 << 0;
protected static final int FLAG_MULTI_PAGE = 1 << 1;
@@ -193,7 +195,10 @@
}
public int getVisibleElements(Launcher launcher) {
- return HOTSEAT;
+ if (launcher.getDeviceProfile().isVerticalBarLayout()) {
+ return HOTSEAT_ICONS;
+ }
+ return HOTSEAT_ICONS | HOTSEAT_EXTRA;
}
/**