mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Add extraItems to dump log for BgDataModel
The extraItems include suggested hotseat icons, which we want to have in the dump to help us debug future bugs regarding hotseat Bug: 301369051 Test: n/a Flag: no flag Change-Id: I6a0f5e785441915ecfece95dfcba7d60ef5912d2
This commit is contained in:
@@ -170,11 +170,15 @@ public class BgDataModel {
|
||||
writer.println(prefix + '\t' + appWidgets.get(i).toString());
|
||||
}
|
||||
writer.println(prefix + " ---- folder items ");
|
||||
for (int i = 0; i< folders.size(); i++) {
|
||||
for (int i = 0; i < folders.size(); i++) {
|
||||
writer.println(prefix + '\t' + folders.valueAt(i).toString());
|
||||
}
|
||||
writer.println(prefix + " ---- extra items ");
|
||||
for (int i = 0; i < extraItems.size(); i++) {
|
||||
writer.println(prefix + '\t' + extraItems.valueAt(i).toString());
|
||||
}
|
||||
writer.println(prefix + " ---- items id map ");
|
||||
for (int i = 0; i< itemsIdMap.size(); i++) {
|
||||
for (int i = 0; i < itemsIdMap.size(); i++) {
|
||||
writer.println(prefix + '\t' + itemsIdMap.valueAt(i).toString());
|
||||
}
|
||||
|
||||
@@ -442,6 +446,20 @@ public class BgDataModel {
|
||||
this.containerId = containerId;
|
||||
this.items = Collections.unmodifiableList(items);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public final String toString() {
|
||||
StringBuilder s = new StringBuilder();
|
||||
s.append("FixedContainerItems:");
|
||||
s.append(" id=").append(containerId);
|
||||
s.append(" itemCount=").append(items.size());
|
||||
for (int i = 0; i < items.size(); i++) {
|
||||
s.append(" item #").append(i).append(": ").append(items.get(i).toString());
|
||||
}
|
||||
return s.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user