Two small review details: comment and initializing boolean

This commit is contained in:
Torsten Grote
2016-12-07 14:49:57 -02:00
parent 98dd8ec7f7
commit 001f5faeaa
2 changed files with 2 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ public class ContactItem {
private boolean connected;
public ContactItem(Contact contact) {
this.contact = contact;
this(contact, false);
}
public ContactItem(Contact contact, boolean connected) {

View File

@@ -32,6 +32,7 @@ public class ContactItemViewHolder<I extends ContactItem>
layout = (ViewGroup) v;
avatar = (ImageView) v.findViewById(R.id.avatarView);
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);
}