fix #376, properly handle printing hashtags

This commit is contained in:
tibbi 2020-11-04 21:50:11 +01:00
parent ad2cb70a0c
commit 8880b4795e
2 changed files with 2 additions and 2 deletions

View File

@ -860,7 +860,7 @@ class MainActivity : SimpleActivity() {
}
}
webView.loadData(getPrintableText(), "text/plain", "UTF-8")
webView.loadData(getPrintableText().replace("#", "%23"), "text/plain", "UTF-8")
} catch (e: Exception) {
showErrorToast(e)
}

View File

@ -99,7 +99,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
view.checklist_fab.apply {
setImageDrawable(plusIcon)
background.applyColorFilter(activity!!.getAdjustedPrimaryColor())
background?.applyColorFilter(activity!!.getAdjustedPrimaryColor())
setOnClickListener {
showNewItemDialog()
}