Prevent crash

This commit is contained in:
M66B 2022-05-13 08:13:47 +02:00
parent 4796330283
commit 4085fdf9c1
2 changed files with 18 additions and 0 deletions

View File

@ -44,6 +44,15 @@ public class ConstraintLayoutEx extends ConstraintLayout {
super(context, attrs, defStyleAttr, defStyleRes);
}
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
try {
super.onLayout(changed, left, top, right, bottom);
} catch (Throwable ex) {
Log.e(ex);
}
}
/*
java.lang.IndexOutOfBoundsException: 2, 0
at android.text.PackedIntVector.getValue(PackedIntVector.java:75)

View File

@ -44,6 +44,15 @@ public class FrameLayoutEx extends FrameLayout {
super(context, attrs, defStyleAttr, defStyleRes);
}
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
try {
super.onLayout(changed, left, top, right, bottom);
} catch (Throwable ex) {
Log.e(ex);
}
}
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
try {