mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Cleanup temporary catchError. (#26454)
This was added to make sure we don't crash before the engine is rolled with the system channel API addition and is no longer needed.
This commit is contained in:
parent
3f3a829c88
commit
cbff7ca43c
@ -412,17 +412,7 @@ class _UiKitViewGestureRecognizer extends OneSequenceGestureRecognizer {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void rejectGesture(int pointer) {
|
void rejectGesture(int pointer) {
|
||||||
controller.rejectGesture().catchError((dynamic e) {
|
controller.rejectGesture();
|
||||||
if (e is MissingPluginException) {
|
|
||||||
// We land the framework part of active gesture rejection before the engine part.
|
|
||||||
// There will be some commit range where we call rejectGesture from the framework and it
|
|
||||||
// isn't implemented in the engine, if that is the case we swallow the MissingPluginException.
|
|
||||||
// Once the engine support lands we will remove the enclosing catchError call.
|
|
||||||
// TODO(amirh): remove this once the engine supports active gesture rejection.
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
throw e;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void reset() {
|
void reset() {
|
||||||
|
Loading…
Reference in New Issue
Block a user