Launch ComposeActivity directly from other apps, load address from intent

This commit is contained in:
Moez Bhatti
2018-01-04 03:27:39 -05:00
parent b77e87ea85
commit 34378fbc95
4 changed files with 32 additions and 23 deletions
@@ -105,9 +105,7 @@ class Navigator @Inject constructor(val context: Context) {
}
ComposeViewModel::class.java -> {
val threadId = intent.getLongExtra("threadId", 0)
val body = intent.getStringExtra("body") ?: ""
ComposeViewModel(threadId, body)
ComposeViewModel(intent)
}
SettingsViewModel::class.java -> {