Merge pull request #8222 from osmandapp/Widget_for_Tracker_in_OsmAnd

fix widget status (with enabled monitoring)
This commit is contained in:
max-klaus 2020-01-13 17:47:27 +03:00 committed by GitHub
commit c7249b39a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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