Revert method removal for new screen

This commit is contained in:
Mario Danic 2020-01-03 23:37:35 +01:00
parent ef8dd28151
commit cee1c6a6a1
No known key found for this signature in database
GPG Key ID: CDE0BBD2738C4CC0

View File

@ -255,13 +255,16 @@ class ConversationsListView : BaseView() {
@OnClick(R.id.floatingActionButton)
fun onFloatingActionButtonClick() {
openNewConversationScreen()
}
private fun openNewConversationScreen() {
val bundle = Bundle()
bundle.putBoolean(BundleKeys.KEY_NEW_CONVERSATION, true)
router.pushController(
RouterTransaction.with(ContactsController(bundle))
.pushChangeHandler(HorizontalChangeHandler())
.popChangeHandler(HorizontalChangeHandler())
)
.popChangeHandler(HorizontalChangeHandler()))
}
private fun getConversationMenuItemsForConversation(conversation: Conversation): MutableList<BasicListItemWithImage> {