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

Add brackets in if-statement

parent 5cc11b9b
...@@ -916,10 +916,11 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardListener, EmojiR ...@@ -916,10 +916,11 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardListener, EmojiR
actionSnackbar = ActionSnackbar.make(message_list_container, parser = parser) actionSnackbar = ActionSnackbar.make(message_list_container, parser = parser)
actionSnackbar.cancelView.setOnClickListener { actionSnackbar.cancelView.setOnClickListener {
clearMessageComposition(false) clearMessageComposition(false)
if (text_message.textContent.isEmpty()) if (text_message.textContent.isEmpty()) {
KeyboardHelper.showSoftKeyboard(text_message) KeyboardHelper.showSoftKeyboard(text_message)
} }
} }
}
private fun subscribeComposeTextMessage() { private fun subscribeComposeTextMessage() {
val editTextObservable = text_message.asObservable() val editTextObservable = text_message.asObservable()
......
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