Work on notification improvements

This commit is contained in:
Juha Heinanen
2025-11-27 10:32:31 +02:00
parent 9099828c88
commit 97338f20d1
53 changed files with 253 additions and 39 deletions
@@ -44,6 +44,16 @@ sealed class Contact {
}
}
fun color(): String {
val intColor = when (this) {
is AndroidContact -> color
is BaresipContact -> color
}
// Mask with 0xFFFFFF to ensure we get the standard 6-character hex code (RRGGBB)
// ignoring the alpha channel for compatibility with simple string parsers.
return String.format("#%06X", 0xFFFFFF and intColor)
}
fun copy(): Contact {
val copy = when (this) {
is BaresipContact ->