EOPATCH2: fix open preferences

This commit is contained in:
Milos Kozak 2023-01-16 20:21:32 +01:00
parent 556c1a048f
commit fa2b9bddcc

View file

@ -107,15 +107,14 @@ class EopatchPumpPlugin @Inject constructor(
alarmManager.init()
}) { throwable: Throwable -> fabricPrivacy.logException(throwable) }
)
}
// following was moved from specialEnableCondition()
// specialEnableCondition() is called too often to add there executive code
override fun specialEnableCondition(): Boolean {
//BG -> FG, restart patch activation and trigger unhandled alarm
if (preferenceManager.isInitDone()) {
patchManager.checkActivationProcess()
alarmManager.restartAll()
}
return super.specialEnableCondition()
}
override fun onStop() {