mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Prevent crash
This commit is contained in:
parent
46f2214c40
commit
d67d0940ae
1 changed files with 10 additions and 0 deletions
|
@ -70,6 +70,16 @@ public class FixedEditText extends AppCompatEditText {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onPreDraw() {
|
||||
try {
|
||||
return super.onPreDraw();
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDraw(Canvas canvas) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue