Set default value for rank field in launcher logs to ItemInfo.rank.

Bug: 188222480
Test: wwdebug & wwlogcat
Change-Id: I16786eb2e6f1d4ce44dbda5eff27b1cd7f50ee8e
This commit is contained in:
Thiru Ramasamy 2021-11-29 16:14:02 -08:00
parent 44fcfa5bfd
commit 24fbda5448
1 changed files with 1 additions and 0 deletions

View File

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