Merge "Set default value for rank field in launcher logs to ItemInfo.rank." into sc-v2-dev

This commit is contained in:
TreeHugger Robot 2021-12-13 18:48:09 +00:00 committed by Android (Google) Code Review
commit ed6cbbc9a6
1 changed files with 1 additions and 0 deletions

View File

@ -376,6 +376,7 @@ public class ItemInfo {
protected LauncherAtom.ItemInfo.Builder getDefaultItemInfoBuilder() { protected LauncherAtom.ItemInfo.Builder getDefaultItemInfoBuilder() {
LauncherAtom.ItemInfo.Builder itemBuilder = LauncherAtom.ItemInfo.newBuilder(); LauncherAtom.ItemInfo.Builder itemBuilder = LauncherAtom.ItemInfo.newBuilder();
itemBuilder.setIsWork(!Process.myUserHandle().equals(user)); itemBuilder.setIsWork(!Process.myUserHandle().equals(user));
itemBuilder.setRank(rank);
return itemBuilder; return itemBuilder;
} }