Fixed airplane mode trigger not working
This commit is contained in:
@@ -136,7 +136,12 @@ public class ConnectivityReceiver extends BroadcastReceiver implements Automatio
|
|||||||
// Airplane mode status has changed.
|
// Airplane mode status has changed.
|
||||||
Miscellaneous.logEvent("i", "Connectivity", "Airplane mode changed.", 2);
|
Miscellaneous.logEvent("i", "Connectivity", "Airplane mode changed.", 2);
|
||||||
boolean isAirplaneMode = isAirplaneMode(context);
|
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.findRuleCandidates(Trigger_Enum.airplaneMode);
|
||||||
// ArrayList<Rule> ruleCandidates = Rule.findRuleCandidatesByAirplaneMode(isAirplaneMode);
|
// ArrayList<Rule> ruleCandidates = Rule.findRuleCandidatesByAirplaneMode(isAirplaneMode);
|
||||||
|
|||||||
@@ -2,4 +2,5 @@
|
|||||||
* Fixed: trigger url result was not stored correctly in a variable
|
* Fixed: trigger url result was not stored correctly in a variable
|
||||||
* Fixed: Crash when clicking +/- when creating/editing TimeFrame trigger
|
* Fixed: Crash when clicking +/- when creating/editing TimeFrame trigger
|
||||||
* Fixed: Permission BLUETOOTH_CONNECT requested for Bluetooth trigger editor in Google Play version
|
* 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
|
* Added Possibility to select UI theme, hence enabling modern UI designs
|
||||||
Reference in New Issue
Block a user