ComposeActivity: add optional field markdownMode to ComposeOptions

main
Alibek Omarov 5 years ago
parent 857bedc995
commit 2e2ab4ed6a
  1. 4
      app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeActivity.kt

@ -157,6 +157,7 @@ class ComposeActivity : BaseActivity(),
if (!tootText.isNullOrEmpty()) { if (!tootText.isNullOrEmpty()) {
composeEditField.setText(tootText) composeEditField.setText(tootText)
} }
enableMarkdownMode(composeOptions?.markdownMode ?: false);
} }
if (!TextUtils.isEmpty(composeOptions?.scheduledAt)) { if (!TextUtils.isEmpty(composeOptions?.scheduledAt)) {
@ -1018,7 +1019,8 @@ class ComposeActivity : BaseActivity(),
var mediaAttachments: List<Attachment>? = null, var mediaAttachments: List<Attachment>? = null,
var scheduledAt: String? = null, var scheduledAt: String? = null,
var sensitive: Boolean? = null, var sensitive: Boolean? = null,
var poll: NewPoll? = null var poll: NewPoll? = null,
var markdownMode: Boolean? = null
) : Parcelable ) : Parcelable
companion object { companion object {

Loading…
Cancel
Save