Switch to enum and theme type for MaterialColor.

// FREEBIE
This commit is contained in:
Moxie Marlinspike
2015-07-01 12:22:42 -07:00
parent 9bf7562d49
commit 4ea40b30a2
28 changed files with 393 additions and 629 deletions

View File

@@ -39,7 +39,7 @@ public class AvatarImageView extends ImageView {
public void setAvatar(@Nullable Recipients recipients, boolean quickContactEnabled) {
if (recipients != null) {
MaterialColor backgroundColor = recipients.getColor(getContext());
MaterialColor backgroundColor = recipients.getColor();
setImageDrawable(recipients.getContactPhoto().asDrawable(getContext(), backgroundColor.toConversationColor(getContext()), inverted));
setAvatarClickHandler(recipients, quickContactEnabled);
} else {