Fix image forwarding

This commit is contained in:
Moez Bhatti
2018-04-07 17:12:09 -04:00
parent 89aa0bfd80
commit 5315678766
2 changed files with 14 additions and 3 deletions
@@ -88,9 +88,14 @@ class Navigator @Inject constructor(private val context: Context, private val no
startActivity(intent)
}
fun showCompose(body: String? = null) {
fun showCompose(body: String? = null, images: List<Uri>? = null) {
val intent = Intent(context, ComposeActivity::class.java)
intent.putExtra(Intent.EXTRA_TEXT, body)
images?.takeIf { it.isNotEmpty() }?.let {
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, ArrayList(images))
}
startActivity(intent)
}