mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 04:55:29 +03:00
use const val for time
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
808da8970a
commit
3cd25f4248
1 changed files with 2 additions and 1 deletions
|
@ -2766,7 +2766,7 @@ class ChatActivity :
|
||||||
message2.timestamp,
|
message2.timestamp,
|
||||||
message1.timestamp
|
message1.timestamp
|
||||||
)
|
)
|
||||||
val isLessThan5Min = timeDifference > 300
|
val isLessThan5Min = timeDifference > FIVE_MINUTES_IN_SECONDS
|
||||||
if (isSameDayMessages(message2, message1) &&
|
if (isSameDayMessages(message2, message1) &&
|
||||||
(message2.actorId == message1.actorId) &&
|
(message2.actorId == message1.actorId) &&
|
||||||
(!isLessThan5Min) &&
|
(!isLessThan5Min) &&
|
||||||
|
@ -3834,5 +3834,6 @@ class ChatActivity :
|
||||||
private const val CURRENT_AUDIO_WAS_PLAYING_KEY = "CURRENT_AUDIO_PLAYING"
|
private const val CURRENT_AUDIO_WAS_PLAYING_KEY = "CURRENT_AUDIO_PLAYING"
|
||||||
private const val RESUME_AUDIO_TAG = "RESUME_AUDIO_TAG"
|
private const val RESUME_AUDIO_TAG = "RESUME_AUDIO_TAG"
|
||||||
private const val DELAY_TO_SHOW_PROGRESS_BAR = 1000L
|
private const val DELAY_TO_SHOW_PROGRESS_BAR = 1000L
|
||||||
|
private const val FIVE_MINUTES_IN_SECONDS:Long = 300
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue