Skip to content

Commit 84b1f0d

Browse files
committed
Limit fix to TIRAMISU
1 parent 832b2e0 commit 84b1f0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecExceptionHandler.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ class AztecExceptionHandler(private var logHelper: WeakReference<ExceptionHandle
6565
visualEditor.get()?.externalLogger?.logException(DynamicLayoutGetBlockIndexOutOfBoundsException("Error #8828", ex))
6666
}
6767
// See: https://github.com/wordpress-mobile/AztecEditor-Android/issues/880
68-
} else if (ex is java.lang.IllegalArgumentException && ex.message?.contains("Center point is not inside any of the rectangles") == true) {
68+
} else if (ex is java.lang.IllegalArgumentException &&
69+
Build.VERSION.SDK_INT == Build.VERSION_CODES.TIRAMISU &&
70+
ex.message?.contains("Center point is not inside any of the rectangles") == true) {
6971
visualEditor.get()?.externalLogger?.logException(ex)
7072
return
7173
}

0 commit comments

Comments
 (0)