NTP-60702 | Conditional Transaction history Sync (#16442)
This commit is contained in:
committed by
GitHub
parent
6e3d34b745
commit
9c8e848eac
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user