mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
829d4d9c37
commit
88ab7acd44
|
@ -67,4 +67,30 @@ public class FixedEditText extends AppCompatEditText {
|
|||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean performLongClick() {
|
||||
try {
|
||||
return super.performLongClick();
|
||||
} catch (Throwable ex) {
|
||||
/*
|
||||
java.lang.IllegalStateException: Drag shadow dimensions must be positive
|
||||
at android.view.View.startDragAndDrop(View.java:27316)
|
||||
at android.widget.Editor.startDragAndDrop(Editor.java:1340)
|
||||
at android.widget.Editor.performLongClick(Editor.java:1374)
|
||||
at android.widget.TextView.performLongClick(TextView.java:13544)
|
||||
at android.view.View.performLongClick(View.java:7928)
|
||||
at android.view.View$CheckForLongPress.run(View.java:29321)
|
||||
*/
|
||||
/*
|
||||
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.Editor$SelectionModifierCursorController.getMinTouchOffset()' on a null object reference
|
||||
at android.widget.Editor.touchPositionIsInSelection(Unknown:36)
|
||||
at android.widget.Editor.performLongClick(Unknown:72)
|
||||
at android.widget.TextView.performLongClick(Unknown:24)
|
||||
*/
|
||||
Log.w(ex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue