fix widget status (with enabled monitoring)

This commit is contained in:
veliymolfar 2020-01-13 16:17:58 +02:00
parent f0c436c71f
commit 88b89085e6

View file

@ -245,7 +245,9 @@ class TelegramService : Service(), LocationListener, TelegramIncomingMessagesLis
oldestTime = -1 oldestTime = -1
} }
app().showLocationHelper.addOrUpdateStatusWidget(oldestTime, isSending) app().showLocationHelper.addOrUpdateStatusWidget(oldestTime, isSending)
} } else {
app().showLocationHelper.addOrUpdateStatusWidget(-1, false)
}
startWidgetUpdates() startWidgetUpdates()
}, UPDATE_WIDGET_INTERVAL_MS) }, UPDATE_WIDGET_INTERVAL_MS)
} }