Merge "[AA+] Add SearchResult type to ItemInfo attributes." into sc-dev am: 04a194fca0

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14288959

Change-Id: I3d055ce1229b8f2aaccd789c52df29235c6a59d6
This commit is contained in:
TreeHugger Robot
2021-04-28 18:20:53 +00:00
committed by Automerger Merge Worker
2 changed files with 17 additions and 1 deletions
+16
View File
@@ -125,6 +125,22 @@ enum Attribute {
// Folder's label is empty(i.e., title == "").
// Not eligible for auto-labeling.
EMPTY_LABEL = 12;
ALL_APPS_SEARCH_RESULT_APPLICATION = 13;
ALL_APPS_SEARCH_RESULT_SHORTCUT = 14;
ALL_APPS_SEARCH_RESULT_PEOPLE = 15;
ALL_APPS_SEARCH_RESULT_ACTION = 16;
ALL_APPS_SEARCH_RESULT_SETTING = 17;
ALL_APPS_SEARCH_RESULT_SCREENSHOT = 18;
ALL_APPS_SEARCH_RESULT_SLICE = 19;
ALL_APPS_SEARCH_RESULT_WIDGETS = 20;
ALL_APPS_SEARCH_RESULT_PLAY = 21;
ALL_APPS_SEARCH_RESULT_SUGGEST = 22;
ALL_APPS_SEARCH_RESULT_ASSISTANT = 23;
ALL_APPS_SEARCH_RESULT_CHROMETAB = 24;
ALL_APPS_SEARCH_RESULT_NAVVYSITE = 25;
ALL_APPS_SEARCH_RESULT_TIPS = 26;
ALL_APPS_SEARCH_RESULT_PEOPLE_TILE = 27;
}
// Main app icons
@@ -366,7 +366,7 @@ public class ItemInfo {
return itemBuilder.build();
}
LauncherAtom.ItemInfo.Builder getDefaultItemInfoBuilder() {
protected LauncherAtom.ItemInfo.Builder getDefaultItemInfoBuilder() {
LauncherAtom.ItemInfo.Builder itemBuilder = LauncherAtom.ItemInfo.newBuilder();
itemBuilder.setIsWork(user != Process.myUserHandle());
return itemBuilder;