From 88b89085e608d2571e7e6bc147cb7da5eb70524d Mon Sep 17 00:00:00 2001 From: veliymolfar Date: Mon, 13 Jan 2020 16:17:58 +0200 Subject: [PATCH] fix widget status (with enabled monitoring) --- OsmAnd-telegram/src/net/osmand/telegram/TelegramService.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/TelegramService.kt b/OsmAnd-telegram/src/net/osmand/telegram/TelegramService.kt index 4915133e42..ec9d3c43c0 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/TelegramService.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/TelegramService.kt @@ -245,7 +245,9 @@ class TelegramService : Service(), LocationListener, TelegramIncomingMessagesLis oldestTime = -1 } app().showLocationHelper.addOrUpdateStatusWidget(oldestTime, isSending) - } + } else { + app().showLocationHelper.addOrUpdateStatusWidget(-1, false) + } startWidgetUpdates() }, UPDATE_WIDGET_INTERVAL_MS) }