use resource for consistent color gen (as per modernxmpp)
This commit is contained in:
parent
4fae8d4e11
commit
75a4008aee
|
@ -53,8 +53,12 @@ public final class ConsistentColorGeneration {
|
|||
}
|
||||
|
||||
public static int harmonized(final Context context, final Jid jid) {
|
||||
if (jid.hasResource()) {
|
||||
return harmonized(context, jid.getResourceOrEmpty().toString());
|
||||
} else {
|
||||
return harmonized(context, jid.toString());
|
||||
}
|
||||
}
|
||||
|
||||
@ColorInt
|
||||
private static int rgb(
|
||||
|
|
Loading…
Reference in a new issue