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)
|
val intent = Intent(context, ComposeActivity::class.java)
|
||||||
intent.putExtra(Intent.EXTRA_TEXT, body)
|
intent.putExtra(Intent.EXTRA_TEXT, body)
|
||||||
|
|
||||||
images?.takeIf { it.isNotEmpty() }?.let {
|
attachments?.takeIf { it.isNotEmpty() }?.let {
|
||||||
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, ArrayList(images))
|
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, ArrayList(attachments))
|
||||||
}
|
}
|
||||||
|
|
||||||
startActivity(intent)
|
startActivity(intent)
|
||||||
|
|||||||
Reference in New Issue
Block a user