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) {
|
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());
|
return harmonized(context, jid.toString());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ColorInt
|
@ColorInt
|
||||||
private static int rgb(
|
private static int rgb(
|
||||||
|
|
Loading…
Reference in a new issue