From e0271f99a515ee19a759975477bd1099aee5199b Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 13 Jul 2018 17:06:05 +0300 Subject: [PATCH] rename getChatLivePeriod --- OsmAnd-telegram/src/net/osmand/telegram/TelegramSettings.kt | 2 +- .../src/net/osmand/telegram/ui/SetTimeDialogFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/TelegramSettings.kt b/OsmAnd-telegram/src/net/osmand/telegram/TelegramSettings.kt index 00469e945f..a3ef4ccb9d 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/TelegramSettings.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/TelegramSettings.kt @@ -80,7 +80,7 @@ class TelegramSettings(private val app: TelegramApplication) { this.shareLocationChats = shareLocationChats.toHashSet() } - fun getChatExpireTime(chatId: Long) = chatLivePeriods[chatId] + fun getChatLivePeriod(chatId: Long) = chatLivePeriods[chatId] fun stopSharingLocationToChats() { this.shareLocationChats = emptySet() diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt index 8f279374f1..c6b2cdc7ae 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt @@ -111,7 +111,7 @@ class SetTimeDialogFragment : DialogFragment() { chatLivePeriods.clear() bundle?.getLongArray(CHATS_KEY)?.also { for (i in 0 until it.size step 2) { - val expireTime = settings.getChatExpireTime(it[i]) + val expireTime = settings.getChatLivePeriod(it[i]) chatLivePeriods[it[i]] = expireTime ?: it[i + 1] } }