Adds Launcher flag to enable Universal Smartspace.

Test: Used the flag
Bug: 141701658
Change-Id: Id06016e313b05ae70b693c39e2e1cde2576cfbb1
This commit is contained in:
Andy Wickham 2020-01-17 12:01:26 -08:00
parent 442d5e5bcd
commit ff13792b83
2 changed files with 5 additions and 1 deletions

View File

@ -496,7 +496,7 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
// In transposed layout, we add the QSB in the Grid. As workspace does not touch the
// edges, we do not need a full width QSB.
qsb = LayoutInflater.from(getContext())
.inflate(R.layout.search_container_workspace,firstPage, false);
.inflate(R.layout.search_container_workspace, firstPage, false);
}
CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, firstPage.getCountX(), 1);

View File

@ -140,6 +140,10 @@ public final class FeatureFlags {
"ENABLE_DATABASE_RESTORE", true,
"Enable database restore when new restore session is created");
public static final TogglableFlag ENABLE_UNIVERSAL_SMARTSPACE = new TogglableFlag(
"ENABLE_UNIVERSAL_SMARTSPACE", false,
"Replace Smartspace with a version rendered by System UI.");
public static void initialize(Context context) {
// Avoid the disk read for user builds
if (Utilities.IS_DEBUG_DEVICE) {