Skip to content
Snippets Groups Projects
Verified Commit 13c1896c authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes #144

parent 5de6beed
No related branches found
No related tags found
No related merge requests found
......@@ -148,9 +148,12 @@ class ChatActivity : ServiceBoundActivity(), SharedPreferences.OnSharedPreferenc
if (intent != null) {
when {
intent.type == "text/plain" -> {
chatlineFragment?.replaceText(intent.getStringExtra(Intent.EXTRA_TEXT))
val text = intent.getCharSequenceExtra(Intent.EXTRA_TEXT)
if (text != null) {
chatlineFragment?.replaceText(text)
drawerLayout.closeDrawers()
}
}
intent.hasExtra(KEY_BUFFER_ID) -> {
viewModel.buffer.onNext(intent.getIntExtra(KEY_BUFFER_ID, -1))
viewModel.bufferOpened.onNext(Unit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment