Fix some lint errors.

This commit is contained in:
Greyson Parrelli
2025-03-27 13:56:48 -04:00
parent 8a2e15b76b
commit 80bc2bdc89
4 changed files with 13 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ class Colorizer {
}
}
@Suppress("DEPRECATION")
@ColorInt
fun getIncomingGroupSenderColor(context: Context, recipient: Recipient): Int {
return if (groupMembers.isEmpty()) {
@@ -88,6 +89,7 @@ class Colorizer {
groupMembers.addAll(serviceIds.sortedBy { it.toString() })
}
@Suppress("DEPRECATION")
@Deprecated("Not needed for CFv2", ReplaceWith("onGroupMembershipChanged"))
fun onNameColorsChanged(nameColorMap: Map<RecipientId, NameColor>) {
groupSenderColors.clear()
@@ -95,6 +97,7 @@ class Colorizer {
colorsHaveBeenSet = true
}
@Suppress("DEPRECATION")
@ColorInt
private fun getDefaultColor(context: Context, recipient: Recipient): Int {
return if (colorsHaveBeenSet) {