mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 04:39:04 +00:00
Fix URL handling. Fixes #1674
This commit is contained in:
parent
206cf183a5
commit
8eca74d83e
2 changed files with 15 additions and 2 deletions
|
|
@ -297,6 +297,18 @@
|
|||
android:name=".widget.TodosWidgetService"
|
||||
android:permission="android.permission.BIND_REMOTEVIEWS" />
|
||||
<service android:name=".widget.HabitButtonWidgetService"/>
|
||||
</application>
|
||||
|
||||
</application>
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="https" />
|
||||
</intent>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="http" />
|
||||
</intent>
|
||||
</queries>
|
||||
</manifest>
|
||||
|
|
|
|||
|
|
@ -83,7 +83,8 @@ object MarkdownParser {
|
|||
return SpannableString("")
|
||||
}
|
||||
val text = EmojiParser.parseEmojis(input) ?: input
|
||||
return markwon?.toMarkdown(text) ?: SpannableString(text)
|
||||
// Adding this space here bc for some reason some markdown is not rendered correctly when the whole string is supposed to be formatted
|
||||
return markwon?.toMarkdown("$text ") ?: SpannableString(text)
|
||||
}
|
||||
|
||||
fun parseMarkdownAsync(input: String?, onSuccess: Consumer<Spanned>) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue