fix NoClassDefFoundError

This commit is contained in:
Chumva 2018-08-23 17:12:16 +03:00
parent 0e4fb790b9
commit 7533fcff97
2 changed files with 3 additions and 3 deletions

View file

@ -558,7 +558,7 @@ class TelegramHelper private constructor() {
}
fun stopSendingLiveLocationMessages() {
chatLiveMessages.forEach { chatId, _ ->
chatLiveMessages.forEach { (chatId, _ )->
stopSendingLiveLocationToChat(chatId)
}
}
@ -593,7 +593,7 @@ class TelegramHelper private constructor() {
private fun sendLiveLocationImpl(chatLivePeriods: Map<Long, Long>, latitude: Double, longitude: Double) {
val location = TdApi.Location(latitude, longitude)
chatLivePeriods.forEach { chatId, livePeriod ->
chatLivePeriods.forEach { (chatId, livePeriod) ->
val content = TdApi.InputMessageLocation(location, livePeriod.toInt())
val msgId = chatLiveMessages[chatId]?.id
if (msgId != null) {

View file

@ -100,7 +100,7 @@ class SetTimeDialogFragment : DialogFragment(), TelegramLocationListener, Telegr
if (!AndroidUtils.isLocationPermissionAvailable(view.context)) {
AndroidUtils.requestLocationPermission(activity!!)
} else {
chatLivePeriods.forEach { chatId, livePeriod ->
chatLivePeriods.forEach { (chatId, livePeriod) ->
settings.shareLocationToChat(chatId, true, livePeriod)
}
app.shareLocationHelper.startSharingLocation()