Skip to content

Commit b8a4d23

Browse files
david-allisonBrayanDSO
authored andcommitted
docs: document underline bug
1 parent dcb9f56 commit b8a4d23

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • AnkiDroid/src/main/java/com/ichi2/utils

AnkiDroid/src/main/java/com/ichi2/utils/UiUtil.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ object UiUtil {
3333
return str
3434
}
3535

36+
/** Returns [string] as a [Spannable] with an underline applied. */
37+
// BUG: this may not work if the user's system font does not support underlines.
38+
// Reported as an issue with zFont
3639
fun underline(string: String): Spannable =
3740
SpannableString(string).apply {
3841
setSpan(UnderlineSpan(), 0, length, 0)

0 commit comments

Comments
 (0)