Merge "Add logging to help debug additional app infos being updated by CacheDataUpdatedTask" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4eec22f818
@@ -18,6 +18,7 @@ package com.android.launcher3.model;
|
||||
|
||||
import static com.android.launcher3.model.data.AppInfo.COMPONENT_KEY_COMPARATOR;
|
||||
import static com.android.launcher3.model.data.AppInfo.EMPTY_ARRAY;
|
||||
import static com.android.launcher3.testing.shared.TestProtocol.INCORRECT_INFO_UPDATED;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
@@ -38,6 +39,7 @@ import com.android.launcher3.model.BgDataModel.Callbacks;
|
||||
import com.android.launcher3.model.data.AppInfo;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.pm.PackageInstallInfo;
|
||||
import com.android.launcher3.testing.shared.TestProtocol;
|
||||
import com.android.launcher3.util.FlagOp;
|
||||
import com.android.launcher3.util.PackageManagerHelper;
|
||||
import com.android.launcher3.util.SafeCloseable;
|
||||
@@ -270,8 +272,14 @@ public class AllAppsList {
|
||||
}
|
||||
|
||||
public void updateIconsAndLabels(HashSet<String> packages, UserHandle user) {
|
||||
if (TestProtocol.sDebugTracing) {
|
||||
Log.i(INCORRECT_INFO_UPDATED, "updateIconsAndLabels: packages=" + packages);
|
||||
}
|
||||
for (AppInfo info : data) {
|
||||
if (info.user.equals(user) && packages.contains(info.componentName.getPackageName())) {
|
||||
if (TestProtocol.sDebugTracing) {
|
||||
Log.i(INCORRECT_INFO_UPDATED, "updateIconsAndLabels: updating info=" + info);
|
||||
}
|
||||
mIconCache.updateTitleAndIcon(info);
|
||||
info.sectionName = mIndex.computeSectionName(info.title);
|
||||
mDataChanged = true;
|
||||
|
||||
@@ -137,6 +137,7 @@ public final class TestProtocol {
|
||||
public static final String NULL_INT_SET = "b/200572078";
|
||||
public static final String MISSING_PROMISE_ICON = "b/202985412";
|
||||
public static final String TASKBAR_IN_APP_STATE = "b/227657604";
|
||||
public static final String INCORRECT_INFO_UPDATED = "b/239465630";
|
||||
|
||||
public static final String REQUEST_EMULATE_DISPLAY = "emulate-display";
|
||||
public static final String REQUEST_STOP_EMULATE_DISPLAY = "stop-emulate-display";
|
||||
|
||||
Reference in New Issue
Block a user