mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
improve code formatting
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
6cdfa88992
commit
19e3b6d0b1
@ -74,6 +74,7 @@ class IncomingTextMessageViewHolder(itemView: View, payload: Any) : MessageHolde
|
|||||||
lateinit var dateUtils: DateUtils
|
lateinit var dateUtils: DateUtils
|
||||||
|
|
||||||
lateinit var commonMessageInterface: CommonMessageInterface
|
lateinit var commonMessageInterface: CommonMessageInterface
|
||||||
|
|
||||||
override fun onBind(message: ChatMessage) {
|
override fun onBind(message: ChatMessage) {
|
||||||
super.onBind(message)
|
super.onBind(message)
|
||||||
sharedApplication!!.componentApplication.inject(this)
|
sharedApplication!!.componentApplication.inject(this)
|
||||||
|
@ -3488,9 +3488,9 @@ class ChatController(args: Bundle) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun jumpToQuotedMessage(parentMessage: ChatMessage) {
|
fun jumpToQuotedMessage(parentMessage: ChatMessage) {
|
||||||
for(position in 0 until(adapter!!.items.size)) {
|
for (position in 0 until (adapter!!.items.size)) {
|
||||||
val currentItem = adapter?.items?.get(position)?.item
|
val currentItem = adapter?.items?.get(position)?.item
|
||||||
if( currentItem is ChatMessage && currentItem.id == parentMessage.id) {
|
if (currentItem is ChatMessage && currentItem.id == parentMessage.id) {
|
||||||
layoutManager!!.scrollToPosition(position)
|
layoutManager!!.scrollToPosition(position)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user