mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 05:39:53 +01:00
Two small review details: comment and initializing boolean
This commit is contained in:
@@ -13,7 +13,7 @@ public class ContactItem {
|
|||||||
private boolean connected;
|
private boolean connected;
|
||||||
|
|
||||||
public ContactItem(Contact contact) {
|
public ContactItem(Contact contact) {
|
||||||
this.contact = contact;
|
this(contact, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ContactItem(Contact contact, boolean connected) {
|
public ContactItem(Contact contact, boolean connected) {
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ public class ContactItemViewHolder<I extends ContactItem>
|
|||||||
layout = (ViewGroup) v;
|
layout = (ViewGroup) v;
|
||||||
avatar = (ImageView) v.findViewById(R.id.avatarView);
|
avatar = (ImageView) v.findViewById(R.id.avatarView);
|
||||||
name = (TextView) v.findViewById(R.id.nameView);
|
name = (TextView) v.findViewById(R.id.nameView);
|
||||||
|
// this can be null as not all layouts that use this ViewHolder have it
|
||||||
bulb = (ImageView) v.findViewById(R.id.bulbView);
|
bulb = (ImageView) v.findViewById(R.id.bulbView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user