Prevent crash

This commit is contained in:
M66B
2022-05-04 13:09:41 +02:00
parent 5a738c4fe2
commit 70b13df913
166 changed files with 758 additions and 502 deletions

View File

@@ -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