mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +00:00
Create a copy of the original list instead of a new view
unmodifiableList is backed up by the original list and is not suitable to passing to different thead. Bug: 162518472 Change-Id: I71774ced89d64acc7176269e107cfcf47627f7c4
This commit is contained in:
@@ -422,7 +422,7 @@ public class BgDataModel {
|
||||
|
||||
@Override
|
||||
public FixedContainerItems clone() {
|
||||
return new FixedContainerItems(containerId, Collections.unmodifiableList(items));
|
||||
return new FixedContainerItems(containerId, new ArrayList<>(items));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user