mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Prevent crash
This commit is contained in:
@@ -77,6 +77,16 @@ public class DrawerLayoutEx extends DrawerLayout {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean dispatchTouchEvent(MotionEvent ev) {
|
||||
try {
|
||||
return super.dispatchTouchEvent(ev);
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean dispatchGenericMotionEvent(MotionEvent ev) {
|
||||
if (isLocked()) {
|
||||
@@ -89,7 +99,12 @@ public class DrawerLayoutEx extends DrawerLayout {
|
||||
return content.dispatchGenericMotionEvent(ev);
|
||||
}
|
||||
|
||||
return super.dispatchGenericMotionEvent(ev);
|
||||
try {
|
||||
return super.dispatchGenericMotionEvent(ev);
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user