Unverified Commit ddb5d538 authored by Shubham Singh's avatar Shubham Singh Committed by GitHub

Add brackets in if-statement

parent 5cc11b9b
......@@ -916,8 +916,9 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardListener, EmojiR
actionSnackbar = ActionSnackbar.make(message_list_container, parser = parser)
actionSnackbar.cancelView.setOnClickListener {
clearMessageComposition(false)
if (text_message.textContent.isEmpty())
KeyboardHelper.showSoftKeyboard(text_message)
if (text_message.textContent.isEmpty()) {
KeyboardHelper.showSoftKeyboard(text_message)
}
}
}
......@@ -985,4 +986,4 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardListener, EmojiR
private fun setupToolbar(toolbarTitle: String) {
(activity as ChatRoomActivity).showToolbarTitle(toolbarTitle)
}
}
\ No newline at end of file
}
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