mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user