Add debug logs for WorkTabExists test

Bug: 243688989
Change-Id: Iafec4cae86f1527acac9a25fceb501609ca308f6
This commit is contained in:
Vinit Nayak
2023-02-22 17:04:18 -08:00
parent f1a0bd61f4
commit 7a68378fe4
5 changed files with 36 additions and 1 deletions
@@ -18,7 +18,9 @@ package com.android.launcher3.allapps;
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.model.data.ItemInfoWithIcon.FLAG_SHOW_DOWNLOAD_PROGRESS_MASK;
import static com.android.launcher3.testing.shared.TestProtocol.WORK_TAB_MISSING;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
@@ -27,6 +29,7 @@ import androidx.annotation.Nullable;
import com.android.launcher3.BubbleTextView;
import com.android.launcher3.model.data.AppInfo;
import com.android.launcher3.model.data.ItemInfo;
import com.android.launcher3.testing.shared.TestProtocol;
import com.android.launcher3.util.ComponentKey;
import com.android.launcher3.util.PackageUserKey;
@@ -119,6 +122,9 @@ public class AllAppsStore {
return;
}
for (OnUpdateListener listener : mUpdateListeners) {
if (TestProtocol.sDebugTracing) {
Log.d(WORK_TAB_MISSING, "AllAppsStore#notifyUpdate listener: " + listener);
}
listener.onAppsUpdated();
}
}