feat: support API 21 with compat

This commit is contained in:
TwistedUmbrellaX 2024-03-17 14:32:24 -04:00
parent c033bb0445
commit a8ad018c44
5 changed files with 35 additions and 20 deletions

View file

@ -65,7 +65,7 @@ class ProfileFragment : Fragment() {
binding.profileUserBio.setInitialScale(1)
val styledHtml = getFullAniHTML(
user.about ?: "",
activity.getColor(R.color.bg_opp)
ContextCompat.getColor(activity, R.color.bg_opp)
)
binding.profileUserBio.loadDataWithBaseURL(
null,