diff --git a/lib/pages/device.dart b/lib/pages/device.dart index 02251ce..bfb57a1 100644 --- a/lib/pages/device.dart +++ b/lib/pages/device.dart @@ -327,7 +327,9 @@ class _DevicePageState extends State with WidgetsBindingObserver { children: [ IconButton( onPressed: () async { - final currentProfile = actionHandler.supportedApp?.name; + final currentProfile = actionHandler.supportedApp is CustomApp + ? actionHandler.supportedApp?.name + : null; final action = await KeymapManager().showManageProfileDialog( context, currentProfile, diff --git a/lib/utils/requirements/multi.dart b/lib/utils/requirements/multi.dart index ca23ba4..bb73b2c 100644 --- a/lib/utils/requirements/multi.dart +++ b/lib/utils/requirements/multi.dart @@ -44,7 +44,10 @@ class BluetoothTurnedOn extends PlatformRequirement { } else if (currentState == AvailabilityState.poweredOff) { await UniversalBle.enableBluetooth(); } else { - ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('Unable to enable Bluetooth: $currentState'))); + // I guess bluetooth is on now + // TODO move UniversalBle.onAvailabilityChange + getStatus(); + onUpdate(); } }