rename time variable
This commit is contained in:
parent
a155063c86
commit
8d666dc27e
2 changed files with 3 additions and 3 deletions
|
@ -754,10 +754,10 @@ class TelegramHelper private constructor() {
|
||||||
try {
|
try {
|
||||||
val (latS, lonS) = locStr.split(" ")
|
val (latS, lonS) = locStr.split(" ")
|
||||||
val updatedS = locStr.substring(locStr.indexOf("(") + 1, locStr.indexOf(")"))
|
val updatedS = locStr.substring(locStr.indexOf("(") + 1, locStr.indexOf(")"))
|
||||||
val time = parseTime(updatedS)
|
val timeInSeconds = parseTime(updatedS)
|
||||||
res.lat = latS.dropLast(1).toDouble()
|
res.lat = latS.dropLast(1).toDouble()
|
||||||
res.lon = lonS.toDouble()
|
res.lon = lonS.toDouble()
|
||||||
res.editDate = (System.currentTimeMillis() / 1000 - time).toInt()
|
res.editDate = (System.currentTimeMillis() / 1000 - timeInSeconds).toInt()
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ import org.drinkless.td.libcore.telegram.TdApi
|
||||||
|
|
||||||
private const val CHAT_VIEW_TYPE = 0
|
private const val CHAT_VIEW_TYPE = 0
|
||||||
private const val LOCATION_ITEM_VIEW_TYPE = 1
|
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,
|
class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessagesListener,
|
||||||
FullInfoUpdatesListener, TelegramLocationListener, TelegramCompassListener {
|
FullInfoUpdatesListener, TelegramLocationListener, TelegramCompassListener {
|
||||||
|
|
Loading…
Reference in a new issue