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