Fix updating lastLocation
This commit is contained in:
parent
db11fb6181
commit
3d2c045b3a
1 changed files with 1 additions and 1 deletions
|
@ -68,12 +68,12 @@ class ShareLocationHelper(private val app: TelegramApplication) {
|
||||||
|
|
||||||
if (record) {
|
if (record) {
|
||||||
lastLocationUpdateTime = System.currentTimeMillis()
|
lastLocationUpdateTime = System.currentTimeMillis()
|
||||||
|
lastLocation = location
|
||||||
if (app.settings.getChatsShareInfo().isNotEmpty()) {
|
if (app.settings.getChatsShareInfo().isNotEmpty()) {
|
||||||
shareLocationMessages(location, app.telegramHelper.getCurrentUserId())
|
shareLocationMessages(location, app.telegramHelper.getCurrentUserId())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lastLocation = location
|
|
||||||
app.settings.updateSharingStatusHistory()
|
app.settings.updateSharingStatusHistory()
|
||||||
refreshNotification()
|
refreshNotification()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue