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

@@ -476,7 +476,12 @@ public class AdapterIdentity extends RecyclerView.Adapter<AdapterIdentity.ViewHo
Log.d("Changed @" + position + " #" + count);
}
});
diff.dispatchUpdatesTo(this);
try {
diff.dispatchUpdatesTo(this);
} catch (Throwable ex) {
Log.e(ex);
}
}
private static class DiffCallback extends DiffUtil.Callback {