File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1- 1.1.4
1+ 1.1.5
Original file line number Diff line number Diff line change @@ -462,6 +462,11 @@ class EarMicTriggerDefinition extends TriggerDefinition {
462462 ];
463463 }
464464
465+ @override
466+ Future <bool > isSupported () {
467+ return Future .value (ref.read (getKnownGearForTypeProvider (BuiltSet ([DeviceType .ears]))).isNotEmpty);
468+ }
469+
465470 @override
466471 Future <void > onDisable () async {
467472 deviceRefSubscription? .close ();
@@ -541,6 +546,11 @@ class EarTiltTriggerDefinition extends TriggerDefinition {
541546 ];
542547 }
543548
549+ @override
550+ Future <bool > isSupported () {
551+ return Future .value (ref.read (getKnownGearForTypeProvider (BuiltSet ([DeviceType .ears]))).isNotEmpty);
552+ }
553+
544554 @override
545555 Future <void > onDisable () async {
546556 deviceRefSubscription? .close ();
You can’t perform that action at this time.
0 commit comments