fix NoClassDefFoundError
This commit is contained in:
parent
0e4fb790b9
commit
7533fcff97
2 changed files with 3 additions and 3 deletions
|
@ -558,7 +558,7 @@ class TelegramHelper private constructor() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun stopSendingLiveLocationMessages() {
|
fun stopSendingLiveLocationMessages() {
|
||||||
chatLiveMessages.forEach { chatId, _ ->
|
chatLiveMessages.forEach { (chatId, _ )->
|
||||||
stopSendingLiveLocationToChat(chatId)
|
stopSendingLiveLocationToChat(chatId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -593,7 +593,7 @@ class TelegramHelper private constructor() {
|
||||||
|
|
||||||
private fun sendLiveLocationImpl(chatLivePeriods: Map<Long, Long>, latitude: Double, longitude: Double) {
|
private fun sendLiveLocationImpl(chatLivePeriods: Map<Long, Long>, latitude: Double, longitude: Double) {
|
||||||
val location = TdApi.Location(latitude, longitude)
|
val location = TdApi.Location(latitude, longitude)
|
||||||
chatLivePeriods.forEach { chatId, livePeriod ->
|
chatLivePeriods.forEach { (chatId, livePeriod) ->
|
||||||
val content = TdApi.InputMessageLocation(location, livePeriod.toInt())
|
val content = TdApi.InputMessageLocation(location, livePeriod.toInt())
|
||||||
val msgId = chatLiveMessages[chatId]?.id
|
val msgId = chatLiveMessages[chatId]?.id
|
||||||
if (msgId != null) {
|
if (msgId != null) {
|
||||||
|
|
|
@ -100,7 +100,7 @@ class SetTimeDialogFragment : DialogFragment(), TelegramLocationListener, Telegr
|
||||||
if (!AndroidUtils.isLocationPermissionAvailable(view.context)) {
|
if (!AndroidUtils.isLocationPermissionAvailable(view.context)) {
|
||||||
AndroidUtils.requestLocationPermission(activity!!)
|
AndroidUtils.requestLocationPermission(activity!!)
|
||||||
} else {
|
} else {
|
||||||
chatLivePeriods.forEach { chatId, livePeriod ->
|
chatLivePeriods.forEach { (chatId, livePeriod) ->
|
||||||
settings.shareLocationToChat(chatId, true, livePeriod)
|
settings.shareLocationToChat(chatId, true, livePeriod)
|
||||||
}
|
}
|
||||||
app.shareLocationHelper.startSharingLocation()
|
app.shareLocationHelper.startSharingLocation()
|
||||||
|
|
Loading…
Reference in a new issue