mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-05-01 10:30:16 -05:00
crash fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user