mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
4796330283
commit
4085fdf9c1
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue