Commit ec7c6e0b authored by justin's avatar justin

捕获异常

parent d2f628fe
...@@ -501,8 +501,12 @@ public class XFlutterView extends FrameLayout { ...@@ -501,8 +501,12 @@ public class XFlutterView extends FrameLayout {
if (!isAttachedToFlutterEngine()) { if (!isAttachedToFlutterEngine()) {
return super.onHoverEvent(event); return super.onHoverEvent(event);
} }
boolean handled=false;
boolean handled = accessibilityBridge.onAccessibilityHoverEvent(event); try{
handled = accessibilityBridge.onAccessibilityHoverEvent(event);
}catch (Throwable e){
Log.e(TAG, "onConfigurationChanged error ");
}
if (!handled) { if (!handled) {
// TODO(ianh): Expose hover events to the platform, // TODO(ianh): Expose hover events to the platform,
// implementing ADD, REMOVE, etc. // implementing ADD, REMOVE, etc.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment