User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
okay, so, next step

parse this
💜1
1
0
3
1
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
wait

this is new

developer.android.com/develop/ui/compose/text/style-text#display_html_with_links_in_text
1
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
so I do have that, which will handle the HTML automatically in to an annotated string, but I need to somehow add the mention and the emoji annotations to that

and I'm not sure how to do that
1
0
1
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
2 quick options:
- build the parsed HTML annotated string, then just get the text from there, and do my current link and emoji annotations. but that'd leave me without handling stuff like markdown
- before parsing the HTML, add HTML tags for the mentions and the emojis
1
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
btw, test test
1
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
I think I'll do the latter for now
1
0
0
0

User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
anyway, I've seen that mentions are already being processed as links. and I already get an array with a list of mentions from the API. so what I'm gonna do is just implement the link click handler logic to check if the url is in that list of mentions, and if it is, override the browser opening and instead open the profile screen

the bad thing? Iceshrimp.js doesn't seem to have that, so I'll have to figure something out
1
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
anyway, this will do for now
1
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
btw, if anybody knows why the icons on the notification bar stay white, that'd be nice. it's working properly if I set the phone to dark mode
0
0
1
0