Commit 8247ced2 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Null-check to avoid crash when changing fragments

parent 32239224
...@@ -134,8 +134,10 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView { ...@@ -134,8 +134,10 @@ class ChatRoomsFragment : Fragment(), ChatRoomsView {
} }
private val dismissStatus = { private val dismissStatus = {
if (connection_status_text != null) {
connection_status_text.fadeOut() connection_status_text.fadeOut()
} }
}
private fun setupToolbar() { private fun setupToolbar() {
(activity as AppCompatActivity).supportActionBar?.title = getString(R.string.title_chats) (activity as AppCompatActivity).supportActionBar?.title = getString(R.string.title_chats)
......
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