Added fail safe

This commit is contained in:
M66B
2022-03-23 18:19:14 +01:00
parent 9abb755fb8
commit 3ab55e2bf9
19 changed files with 134 additions and 19 deletions

View File

@@ -686,7 +686,12 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
DiffUtil.DiffResult diff = DiffUtil.calculateDiff(new DiffCallback(items, accounts), false);
items = accounts;
diff.dispatchUpdatesTo(this);
try {
diff.dispatchUpdatesTo(this);
} catch (Throwable ex) {
Log.e(ex);
}
}
private class DiffCallback extends DiffUtil.Callback {