rename time variable

This commit is contained in:
Chumva 2018-08-06 14:31:05 +03:00
parent a155063c86
commit 8d666dc27e
2 changed files with 3 additions and 3 deletions

View file

@ -754,10 +754,10 @@ class TelegramHelper private constructor() {
try {
val (latS, lonS) = locStr.split(" ")
val updatedS = locStr.substring(locStr.indexOf("(") + 1, locStr.indexOf(")"))
val time = parseTime(updatedS)
val timeInSeconds = parseTime(updatedS)
res.lat = latS.dropLast(1).toDouble()
res.lon = lonS.toDouble()
res.editDate = (System.currentTimeMillis() / 1000 - time).toInt()
res.editDate = (System.currentTimeMillis() / 1000 - timeInSeconds).toInt()
} catch (e: Exception) {
e.printStackTrace()
}

View file

@ -33,7 +33,7 @@ import org.drinkless.td.libcore.telegram.TdApi
private const val CHAT_VIEW_TYPE = 0
private const val LOCATION_ITEM_VIEW_TYPE = 1
private const val LOCATION_TIMEOUT_TO_BE_STALE = 60 * 15 // 15 minutes
private const val LOCATION_TIMEOUT_TO_BE_STALE = 60 // 15 minutes
class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessagesListener,
FullInfoUpdatesListener, TelegramLocationListener, TelegramCompassListener {