Skip to content
Snippets Groups Projects
Commit 754a2bbc authored by Adrien Béraud's avatar Adrien Béraud
Browse files

home: change fragment on main thread

Change-Id: Icb4e271695c45b39771396aa580ab22512e86911
parent 161ea0f4
Branches
Tags
No related merge requests found
......@@ -401,11 +401,9 @@ class HomeActivity : AppCompatActivity(), NavigationBarView.OnItemSelectedListen
.map { list -> list[0].firstOrError() }
.firstElement()
.flatMapSingle { e -> e }
.observeOn(AndroidSchedulers.mainThread())
.subscribe { element ->
startConversation(
element.accountId,
element.uri
)
startConversation(element.accountId, element.uri)
})
}
}
......@@ -422,10 +420,7 @@ class HomeActivity : AppCompatActivity(), NavigationBarView.OnItemSelectedListen
.firstElement()
.observeOn(AndroidSchedulers.mainThread())
.subscribe { account ->
startConversation(
account.accountId,
Uri.fromString(conversationId)
)
startConversation(account.accountId, Uri.fromString(conversationId))
})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment