1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Revert "Prevent crash"

This reverts commit b7dba612ba.
This commit is contained in:
M66B 2020-07-09 08:14:44 +02:00
parent 9f808be9a1
commit bac8265ce3
2 changed files with 1 additions and 22 deletions

View file

@ -542,11 +542,7 @@ final class PagedStorage<T> extends AbstractList<T> {
// OK only if existing single page, and it's the last one
if (!onlyEndPagePresent && !addingLastPage) {
eu.faircode.email.Log.e("Insert page" +
" size=" + newPageSize + "/" + mPageSize +
" last=" + addingLastPage + " only=" + onlyEndPagePresent);
return;
//throw new IllegalArgumentException("page introduces incorrect tiling");
throw new IllegalArgumentException("page introduces incorrect tiling");
}
if (onlyEndPagePresent) {
mPageSize = newPageSize;

View file

@ -1,17 +0,0 @@
diff --git a/app/src/main/java/androidx/paging/PagedStorage.java b/app/src/main/java/androidx/paging/PagedStorage.java
index c644234c7..500957ae7 100644
--- a/app/src/main/java/androidx/paging/PagedStorage.java
+++ b/app/src/main/java/androidx/paging/PagedStorage.java
@@ -542,7 +542,11 @@ final class PagedStorage<T> extends AbstractList<T> {
// OK only if existing single page, and it's the last one
if (!onlyEndPagePresent && !addingLastPage) {
- throw new IllegalArgumentException("page introduces incorrect tiling");
+ eu.faircode.email.Log.e("Insert page" +
+ " size=" + newPageSize + "/" + mPageSize +
+ " last=" + addingLastPage + " only=" + onlyEndPagePresent);
+ return;
+ //throw new IllegalArgumentException("page introduces incorrect tiling");
}
if (onlyEndPagePresent) {
mPageSize = newPageSize;