remove unnecessary changes

This commit is contained in:
Chumva 2018-08-22 19:04:11 +03:00
parent 00c160a015
commit 76d238b240
3 changed files with 3 additions and 4 deletions

View file

@ -74,8 +74,8 @@ class ShowLocationHelper(private val app: TelegramApplication) {
if (chatTitle != null && content is TdApi.MessageLocation) { if (chatTitle != null && content is TdApi.MessageLocation) {
var userName = "" var userName = ""
var photoPath: String? = null var photoPath: String? = null
val date = telegramHelper.getLastUpdatedTime(message) * 1000L val date = telegramHelper.getLastUpdatedTime(message)
val stale = System.currentTimeMillis() - date > app.settings.staleLocTime * 1000L val stale = System.currentTimeMillis() / 1000 - date > app.settings.staleLocTime
val user = telegramHelper.getUser(message.senderUserId) val user = telegramHelper.getUser(message.senderUserId)
if (user != null) { if (user != null) {
userName = "${user.firstName} ${user.lastName}".trim() userName = "${user.firstName} ${user.lastName}".trim()

View file

@ -34,7 +34,7 @@ private const val LIVE_NOW_TAB_POS = 1
class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListener, TelegramIncomingMessagesListener { class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListener, TelegramIncomingMessagesListener {
private val log = PlatformUtil.getLog(MainActivity::class.java) private val log = PlatformUtil.getLog(TelegramHelper::class.java)
private var telegramAuthorizationRequestHandler: TelegramAuthorizationRequestHandler? = null private var telegramAuthorizationRequestHandler: TelegramAuthorizationRequestHandler? = null
private var paused: Boolean = false private var paused: Boolean = false

View file

@ -32,7 +32,6 @@ const val PROFILE_GRAYSCALE_PHOTOS_DIR = "profile_grayscale_photos/"
const val SAVED_GRAYSCALE_PHOTOS_EXT = ".jpeg" const val SAVED_GRAYSCALE_PHOTOS_EXT = ".jpeg"
class UiUtils(private val app: TelegramApplication) { class UiUtils(private val app: TelegramApplication) {
private val drawableCache = LinkedHashMap<Long, Drawable>() private val drawableCache = LinkedHashMap<Long, Drawable>()
private val circleBitmapCache = LinkedHashMap<String, Bitmap>() private val circleBitmapCache = LinkedHashMap<String, Bitmap>()