forked from upstream-mirrors/quik
attach missed checkin file Navigator.kt - only has a parameter rename
This commit is contained in:
@@ -95,12 +95,12 @@ class Navigator @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
fun showCompose(body: String? = null, images: List<Uri>? = null) {
|
||||
fun showCompose(body: String? = null, attachments: 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))
|
||||
attachments?.takeIf { it.isNotEmpty() }?.let {
|
||||
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, ArrayList(attachments))
|
||||
}
|
||||
|
||||
startActivity(intent)
|
||||
|
||||
Reference in New Issue
Block a user