Commit 0f21d5e0 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Applies code style.

parent b74ee777
...@@ -43,16 +43,28 @@ class ChatRoomNavigator(internal val activity: ChatRoomActivity) { ...@@ -43,16 +43,28 @@ class ChatRoomNavigator(internal val activity: ChatRoomActivity) {
activity.finish() activity.finish()
} }
fun toDirectMessage(chatRoomId: String, fun toDirectMessage(
chatRoomName: String, chatRoomId: String,
chatRoomType: String, chatRoomName: String,
isChatRoomReadOnly: Boolean, chatRoomType: String,
chatRoomLastSeen: Long, isChatRoomReadOnly: Boolean,
isChatRoomSubscribed: Boolean, chatRoomLastSeen: Long,
isChatRoomCreator: Boolean, isChatRoomSubscribed: Boolean,
chatRoomMessage: String) { isChatRoomCreator: Boolean,
activity.startActivity(activity.chatRoomIntent(chatRoomId, chatRoomName, chatRoomType, chatRoomMessage: String
isChatRoomReadOnly, chatRoomLastSeen, isChatRoomSubscribed, isChatRoomCreator, chatRoomMessage)) ) {
activity.startActivity(
activity.chatRoomIntent(
chatRoomId,
chatRoomName,
chatRoomType,
isChatRoomReadOnly,
chatRoomLastSeen,
isChatRoomSubscribed,
isChatRoomCreator,
chatRoomMessage
)
)
activity.overridePendingTransition(R.anim.open_enter, R.anim.open_exit) activity.overridePendingTransition(R.anim.open_enter, R.anim.open_exit)
} }
} }
\ No newline at end of file
...@@ -762,10 +762,10 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardListener, EmojiR ...@@ -762,10 +762,10 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardListener, EmojiR
private fun setupActionSnackbar() { private fun setupActionSnackbar() {
actionSnackbar = ActionSnackbar.make(message_list_container, parser = parser) actionSnackbar = ActionSnackbar.make(message_list_container, parser = parser)
actionSnackbar.cancelView.setOnClickListener({ actionSnackbar.cancelView.setOnClickListener {
clearMessageComposition() clearMessageComposition()
KeyboardHelper.showSoftKeyboard(text_message) KeyboardHelper.showSoftKeyboard(text_message)
}) }
} }
private fun subscribeComposeTextMessage() { private fun subscribeComposeTextMessage() {
......
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