From 56159ec7409204e67caa5b97afce64540bebf77d Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 13 Jul 2018 17:12:25 +0300 Subject: [PATCH] rename expireTime --- .../src/net/osmand/telegram/ui/SetTimeDialogFragment.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt index 9a7d686011..fff610c7d2 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt @@ -80,8 +80,8 @@ class SetTimeDialogFragment : DialogFragment() { if (!AndroidUtils.isLocationPermissionAvailable(view.context)) { AndroidUtils.requestLocationPermission(activity!!) } else { - chatLivePeriods.forEach { chatId, expireTime -> - settings.shareLocationToChat(chatId, true, expireTime) + chatLivePeriods.forEach { chatId, livePeriod -> + settings.shareLocationToChat(chatId, true, livePeriod) } app.shareLocationHelper.startSharingLocation() dismiss() @@ -111,8 +111,8 @@ class SetTimeDialogFragment : DialogFragment() { chatLivePeriods.clear() bundle?.getLongArray(CHATS_KEY)?.also { for (i in 0 until it.size step 2) { - val expireTime = settings.getChatLivePeriod(it[i]) - chatLivePeriods[it[i]] = expireTime ?: it[i + 1] + val livePeriod = settings.getChatLivePeriod(it[i]) + chatLivePeriods[it[i]] = livePeriod ?: it[i + 1] } } }