EOPATCH2: fix open preferences
This commit is contained in:
parent
556c1a048f
commit
fa2b9bddcc
1 changed files with 2 additions and 3 deletions
|
@ -107,15 +107,14 @@ class EopatchPumpPlugin @Inject constructor(
|
||||||
alarmManager.init()
|
alarmManager.init()
|
||||||
}) { throwable: Throwable -> fabricPrivacy.logException(throwable) }
|
}) { 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
|
//BG -> FG, restart patch activation and trigger unhandled alarm
|
||||||
if (preferenceManager.isInitDone()) {
|
if (preferenceManager.isInitDone()) {
|
||||||
patchManager.checkActivationProcess()
|
patchManager.checkActivationProcess()
|
||||||
alarmManager.restartAll()
|
alarmManager.restartAll()
|
||||||
}
|
}
|
||||||
return super.specialEnableCondition()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onStop() {
|
override fun onStop() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue