Updated on 2026-08-14
This commit is contained in:
parent
0ad4588d2c
commit
fbf91e4c6d
4 changed files with 7 additions and 13 deletions
|
|
@ -262,6 +262,6 @@ private fun formatAnnotated(rawString: String): AnnotatedString {
|
|||
*
|
||||
* @return The original reference if hide is false, or reference with STARS if hide is true.
|
||||
*/
|
||||
fun TextReference.orMaskWithStars(mask: Boolean) : TextReference {
|
||||
fun TextReference.orMaskWithStars(mask: Boolean): TextReference {
|
||||
return if (mask) stringReference(STARS) else this
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
package com.tangem.utils
|
||||
|
||||
import com.tangem.utils.StringsSigns.STARS
|
||||
|
||||
object StringsSigns {
|
||||
|
||||
const val STARS = "\u2217\u2217\u2217"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,6 @@ import com.tangem.utils.StringsSigns.STARS
|
|||
*
|
||||
* @return The original string if hide is false, or STARS if hide is true.
|
||||
*/
|
||||
fun String.orHide(hide: Boolean) : String {
|
||||
fun String.orHide(hide: Boolean): String {
|
||||
return if (hide) STARS else this
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue