mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
Fix ConcurrentModificationExceptions during binding.
The same lists of extra items stored in BgModelData are also stored in UI components. This is causing ConcurrentModificationExceptions. The solution is to clone these lists or mark them as immutable before storing them in their respective components. Bug: 206918543 Test: Verified that crash no longer occurs after fix. Change-Id: I571a2c451af58137aa7513b372b6a8ecf9bd3ff6
This commit is contained in:
@@ -118,8 +118,7 @@ public abstract class BaseModelUpdateTask implements ModelUpdateTask {
|
||||
}
|
||||
|
||||
public void bindExtraContainerItems(@NonNull final FixedContainerItems item) {
|
||||
FixedContainerItems copy = item.clone();
|
||||
scheduleCallbackTask(c -> c.bindExtraContainerItems(copy));
|
||||
scheduleCallbackTask(c -> c.bindExtraContainerItems(item));
|
||||
}
|
||||
|
||||
public void bindDeepShortcuts(@NonNull final BgDataModel dataModel) {
|
||||
|
||||
Reference in New Issue
Block a user