NTP-60702 | Conditional Transaction history Sync (#16442)

This commit is contained in:
Balrambhai Sharma
2025-06-04 21:25:42 +05:30
committed by GitHub
parent 6e3d34b745
commit 9c8e848eac
3 changed files with 34 additions and 1 deletions

View File

@@ -69,6 +69,14 @@ fun String?.toLongWithSafe(): Long {
}
}
fun String?.toBooleanWithSafe(): Boolean {
return try {
this?.toBoolean().orFalse()
} catch (_: Exception) {
false
}
}
fun TextView.underLineText() {
paint.flags = paint.flags or Paint.UNDERLINE_TEXT_FLAG
paint.isAntiAlias = true