changes to enter the compose screen in 'scheduling' mode when launched from the scheduling activity. causes message scheduling to shown be shown after contact is chosen

This commit is contained in:
gavine99
2025-02-01 21:18:59 +11:00
parent 5270006807
commit 6f2d47bcd7
7 changed files with 29 additions and 2 deletions
@@ -95,9 +95,10 @@ class Navigator @Inject constructor(
}
}
fun showCompose(body: String? = null, images: List<Uri>? = null) {
fun showCompose(body: String? = null, images: List<Uri>? = null, mode: String? = null) {
val intent = Intent(context, ComposeActivity::class.java)
intent.putExtra(Intent.EXTRA_TEXT, body)
intent.putExtra("mode", mode)
images?.takeIf { it.isNotEmpty() }?.let {
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, ArrayList(images))