rename getChatLivePeriod

This commit is contained in:
Chumva 2018-07-13 17:06:05 +03:00
parent a5a6154d0b
commit e0271f99a5
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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]
}
}