ComposeActivity: add optional field markdownMode to ComposeOptions

This commit is contained in:
Alibek Omarov 2020-01-04 02:15:06 +03:00
parent 589d2db393
commit 7d4e5d8dc0
1 changed files with 3 additions and 1 deletions

View File

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