mirror of
https://github.com/FossifyOrg/Messages.git
synced 2026-06-18 13:28:42 -04:00
Used normalizeString from Commons
This commit is contained in:
@@ -767,13 +767,7 @@ fun Context.getLockScreenVisibilityText(type: Int) = getString(
|
||||
)
|
||||
|
||||
fun Context.removeDiacriticsIfNeeded(text: String): String {
|
||||
var msg = text
|
||||
if (config.useSimpleCharacters) {
|
||||
msg = Normalizer.normalize(msg, Normalizer.Form.NFD)
|
||||
msg = msg.replace("\\p{InCombiningDiacriticalMarks}+".toRegex(), "")
|
||||
}
|
||||
|
||||
return msg
|
||||
return if (config.useSimpleCharacters) text.normalizeString() else text
|
||||
}
|
||||
|
||||
fun Context.getSmsDraft(threadId: Long): String? {
|
||||
|
||||
Reference in New Issue
Block a user