crash fixes

This commit is contained in:
Yuriy Liskov
2025-07-06 03:36:27 +03:00
parent 881e511cfa
commit d540f64e81
@@ -2282,7 +2282,8 @@ final class GridLayoutManager extends RecyclerView.LayoutManager {
// MOD: fix RecycleView crash on Ugoos
try {
fastRelayout();
} catch (IllegalArgumentException | IllegalStateException | NullPointerException e) {
} catch (IndexOutOfBoundsException | IllegalArgumentException | IllegalStateException | NullPointerException e) {
// IndexOutOfBoundsException: Invalid item position 2(2). Item count:2 HorizontalGridView (Aftmm)
// IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{434061b0 position=10 id=-1, oldPos=-1, pLpos:-1 no parent}
// IllegalStateException: Layout state should be one of 100 but it is 10
// NullPointerException: Attempt to read from field 'int androidx.recyclerview.widget.ViewInfoStore$InfoRecord.flags' on a null object reference