disable automation in NSClient mode
This commit is contained in:
parent
f800b85f62
commit
9a2d254365
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,6 @@ class AutomationPlugin @Inject constructor(
|
||||||
.shortName(R.string.automation_short)
|
.shortName(R.string.automation_short)
|
||||||
.showInList(config.APS)
|
.showInList(config.APS)
|
||||||
.neverVisible(!config.APS)
|
.neverVisible(!config.APS)
|
||||||
.alwaysEnabled(!config.APS)
|
|
||||||
.preferencesId(R.xml.pref_automation)
|
.preferencesId(R.xml.pref_automation)
|
||||||
.description(R.string.automation_description),
|
.description(R.string.automation_description),
|
||||||
aapsLogger, rh, injector
|
aapsLogger, rh, injector
|
||||||
|
@ -94,6 +93,8 @@ class AutomationPlugin @Inject constructor(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun specialEnableCondition(): Boolean = !config.NSCLIENT
|
||||||
|
|
||||||
override fun onStart() {
|
override fun onStart() {
|
||||||
locationServiceHelper.startService(context)
|
locationServiceHelper.startService(context)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue