mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +01:00
Merge branch '660-implement-ux-for-the-list-of-private-groups' into 'master'
Private Group List UI This MR implements the UI for the list of private groups. It reacts to three types of events to refresh the displayed data: * new group message received * private group added * private group removed Missing from final implementation: * entering groups * adding new groups * reacting to a future group dissolved event * actually removing a dissolved group    Closes #660 See merge request !335
This commit is contained in:
@@ -2,6 +2,7 @@ package org.briarproject.android.view;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.annotation.UiThread;
|
||||
@@ -78,7 +79,7 @@ public class TextAvatarView extends FrameLayout {
|
||||
int b = getByte(bytes, 2) * 3 / 4 + 96;
|
||||
int color = Color.rgb(r, g, b);
|
||||
|
||||
background.setFillColor(color);
|
||||
background.setImageDrawable(new ColorDrawable(color));
|
||||
}
|
||||
|
||||
private byte getByte(byte[] bytes, int index) {
|
||||
|
||||
Reference in New Issue
Block a user