mirror of
https://github.com/lone-cloud/prism-android
synced 2026-06-03 19:54:44 -07:00
Add hasFailed to RegistrationCounter
This commit is contained in:
parent
0d8d52c901
commit
dbd3e8e654
1 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,8 @@ object MainRegistrationCounter : RegistrationCounter() {
|
||||||
|
|
||||||
override val workerCompanion = RestartWorker.Companion
|
override val workerCompanion = RestartWorker.Companion
|
||||||
|
|
||||||
|
override fun hasFailed(): Boolean = SourceManager.hasFailed
|
||||||
|
|
||||||
override fun onCountRefreshed(context: Context) {
|
override fun onCountRefreshed(context: Context) {
|
||||||
ForegroundNotification(context).update()
|
ForegroundNotification(context).update()
|
||||||
UiAction.publish(UiAction.Action.RefreshRegistrations)
|
UiAction.publish(UiAction.Action.RefreshRegistrations)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue