mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +00:00
Merge ag/16307859 into master without bug fix.
- Copied ag/16307859, with a modification to QuickstepModelDelegate#getContainer. This allows the crash from b/173838775 to continue occuring with additional debuging logs. Bug: 173838775 Test: manual Change-Id: Ic96a25665457c80f5c9ab45a896fada34a3a68ff
This commit is contained in:
@@ -31,6 +31,8 @@ import android.text.TextUtils;
|
||||
import android.util.ArraySet;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.android.launcher3.LauncherSettings;
|
||||
import com.android.launcher3.LauncherSettings.Favorites;
|
||||
import com.android.launcher3.Workspace;
|
||||
@@ -215,6 +217,18 @@ public class BgDataModel {
|
||||
}
|
||||
|
||||
public synchronized void addItem(Context context, ItemInfo item, boolean newItem) {
|
||||
addItem(context, item, newItem, null);
|
||||
}
|
||||
|
||||
public synchronized void addItem(
|
||||
Context context, ItemInfo item, boolean newItem, @Nullable LoaderMemoryLogger logger) {
|
||||
if (logger != null) {
|
||||
logger.addLog(
|
||||
Log.DEBUG,
|
||||
TAG,
|
||||
String.format("Adding item to ID map: %s", item.toString()),
|
||||
/* stackTrace= */ null);
|
||||
}
|
||||
itemsIdMap.put(item.id, item);
|
||||
switch (item.itemType) {
|
||||
case LauncherSettings.Favorites.ITEM_TYPE_FOLDER:
|
||||
|
||||
Reference in New Issue
Block a user