Add logging for adding pending icons to the workspace.

Added logging to help track down b/168788486

Bug: 168788486

Test: manual
Change-Id: I96b38be7c02793f1b6649e6c0de5cdf47dca6edb
This commit is contained in:
Schneider Victor-tulias
2021-03-25 13:51:20 -07:00
parent f23ea3b067
commit bf694d61ee
4 changed files with 32 additions and 1 deletions

View File

@@ -63,6 +63,8 @@ import java.util.stream.Stream;
*/
public class ItemInstallQueue {
private static final String LOG = "ItemInstallQueue";
public static final int FLAG_ACTIVITY_PAUSED = 1;
public static final int FLAG_LOADER_RUNNING = 2;
public static final int FLAG_DRAG_AND_DROP = 4;
@@ -183,7 +185,17 @@ public class ItemInstallQueue {
private void queuePendingShortcutInfo(PendingInstallShortcutInfo info) {
// Queue the item up for adding if launcher has not loaded properly yet
MODEL_EXECUTOR.post(() -> addToQueue(info));
MODEL_EXECUTOR.post(() -> {
Pair<ItemInfo, Object> itemInfo = info.getItemInfo(mContext);
if (itemInfo == null) {
Log.i(LOG, "Adding PendingInstallShortcutInfo with no attached info to queue.");
} else {
Log.i(LOG, "Adding PendingInstallShortcutInfo to queue. Attached info: "
+ itemInfo.first);
}
addToQueue(info);
});
flushInstallQueue();
}