Fixed airplane mode trigger not working

This commit is contained in:
2025-11-16 20:30:38 +01:00
parent 66e86e66b3
commit 35e2a1158d
2 changed files with 7 additions and 1 deletions

View File

@@ -136,7 +136,12 @@ public class ConnectivityReceiver extends BroadcastReceiver implements Automatio
// Airplane mode status has changed.
Miscellaneous.logEvent("i", "Connectivity", "Airplane mode changed.", 2);
boolean isAirplaneMode = isAirplaneMode(context);
automationServiceRef.getLocationProvider().handleAirplaneMode(isAirplaneMode);
/*
If the user doesn't have any locations this service is probably off and therefore null.
*/
if(automationServiceRef.getLocationProvider() != null)
automationServiceRef.getLocationProvider().handleAirplaneMode(isAirplaneMode);
ArrayList<Rule> ruleCandidates = Rule.findRuleCandidates(Trigger_Enum.airplaneMode);
// ArrayList<Rule> ruleCandidates = Rule.findRuleCandidatesByAirplaneMode(isAirplaneMode);

View File

@@ -2,4 +2,5 @@
* Fixed: trigger url result was not stored correctly in a variable
* Fixed: Crash when clicking +/- when creating/editing TimeFrame trigger
* Fixed: Permission BLUETOOTH_CONNECT requested for Bluetooth trigger editor in Google Play version
* Fixed: Airplane mode trigger didn't work if no locations where defined.
* Added Possibility to select UI theme, hence enabling modern UI designs