crash fixes

This commit is contained in:
Yuriy Liskov
2025-06-29 13:50:44 +03:00
parent d071c2fc20
commit ffc37cfe11
2 changed files with 3 additions and 2 deletions

View File

@@ -2328,12 +2328,12 @@ final class GridLayoutManager extends RecyclerView.LayoutManager {
try {
appendVisibleItems();
prependVisibleItems();
} catch (IndexOutOfBoundsException | NullPointerException | IllegalArgumentException | IllegalStateException | UnsupportedOperationException e) {
} catch (UnsupportedOperationException | IndexOutOfBoundsException | NullPointerException | IllegalArgumentException | IllegalStateException e) {
// UnsupportedOperationException: Can't convert value at index 89 to dimension: type=0x8b
// IndexOutOfBoundsException: Invalid item position -1(-1). Item count:12 androidx.leanback.widget.VerticalGridView
// NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()'
// IllegalArgumentException: VideoCardPresenter$1 is not a direct child of HorizontalGridView
// IllegalStateException: Layout state should be one of 100 but it is 10
// UnsupportedOperationException: Can't convert value at index 89 to dimension: type=0x8b
e.printStackTrace();
}
// b/67370222: do not removeInvisibleViewsAtFront/End() in the loop, otherwise

View File

@@ -1,3 +1,4 @@
-keep class io.reactivex.internal.operators.observable.ObservableDelaySubscriptionOther { *; }
-keep class com.google.gson.internal.bind.TypeAdapters$7 { *; }
-keep class com.google.gson.internal.bind.TypeAdapters { *; }
-keep class androidx.leanback.widget.ItemAlignmentFacet$ItemAlignmentDef { *; }