Commit dc6f9936 authored by Lucio Maciel's avatar Lucio Maciel

Fix crash on MessageInfoFragment

parent c4cd2eeb
...@@ -17,6 +17,7 @@ import chat.rocket.android.chatinformation.presentation.MessageInfoView ...@@ -17,6 +17,7 @@ import chat.rocket.android.chatinformation.presentation.MessageInfoView
import chat.rocket.android.chatinformation.viewmodel.ReadReceiptViewModel import chat.rocket.android.chatinformation.viewmodel.ReadReceiptViewModel
import chat.rocket.android.util.extensions.setVisible import chat.rocket.android.util.extensions.setVisible
import chat.rocket.android.util.extensions.showToast import chat.rocket.android.util.extensions.showToast
import chat.rocket.android.util.extensions.ui
import dagger.android.support.AndroidSupportInjection import dagger.android.support.AndroidSupportInjection
import kotlinx.android.synthetic.main.fragment_message_info.* import kotlinx.android.synthetic.main.fragment_message_info.*
import javax.inject.Inject import javax.inject.Inject
...@@ -84,16 +85,22 @@ class MessageInfoFragment : Fragment(), MessageInfoView { ...@@ -84,16 +85,22 @@ class MessageInfoFragment : Fragment(), MessageInfoView {
} }
override fun showLoading() { override fun showLoading() {
view_loading.setVisible(true) ui {
view_loading.show() view_loading.setVisible(true)
view_loading.show()
}
} }
override fun hideLoading() { override fun hideLoading() {
view_loading.hide() ui {
view_loading.setVisible(false) view_loading.hide()
view_loading.setVisible(false)
}
} }
override fun showReadReceipts(messageReceipts: List<ReadReceiptViewModel>) { override fun showReadReceipts(messageReceipts: List<ReadReceiptViewModel>) {
adapter.addAll(messageReceipts) ui {
adapter.addAll(messageReceipts)
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment