aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/MucDetailsActivity.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-03-13 03:52:41 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-03-13 03:52:41 +0100
commita80e3131be975e35c85b3f746cef233fafebaae0 (patch)
treec5997e923a0d32527719546067429e78af7f33e2 /src/eu/siacs/conversations/ui/MucDetailsActivity.java
parenteadebeb77cbc4f5b49d484b8a64058630385afe6 (diff)
contact picture generation centralized + basic registry stuff
Diffstat (limited to 'src/eu/siacs/conversations/ui/MucDetailsActivity.java')
-rw-r--r--src/eu/siacs/conversations/ui/MucDetailsActivity.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/eu/siacs/conversations/ui/MucDetailsActivity.java b/src/eu/siacs/conversations/ui/MucDetailsActivity.java
index f28fb480..124fdadc 100644
--- a/src/eu/siacs/conversations/ui/MucDetailsActivity.java
+++ b/src/eu/siacs/conversations/ui/MucDetailsActivity.java
@@ -64,7 +64,7 @@ public class MucDetailsActivity extends XmppActivity {
membersView = (LinearLayout) findViewById(R.id.muc_members);
mMoreDetails = (LinearLayout) findViewById(R.id.muc_more_details);
mMoreDetails.setVisibility(View.GONE);
- contactsAdapter = new ArrayAdapter<MucOptions.User>(this,
+ /*contactsAdapter = new ArrayAdapter<MucOptions.User>(this,
R.layout.contact, users) {
@Override
public View getView(int position, View view, ViewGroup parent) {
@@ -80,11 +80,10 @@ public class MucDetailsActivity extends XmppActivity {
role.setText(getReadableRole(contact.getRole()));
ImageView imageView = (ImageView) view
.findViewById(R.id.contact_photo);
- imageView.setImageBitmap(UIHelper.getUnknownContactPicture(
- getItem(position).getName(), 90));
+ imageView.setImageBitmap(UIHelper.getContactPictureByName(contact.getName(), 90));
return view;
}
- };
+ };*/
getActionBar().setHomeButtonEnabled(true);
getActionBar().setDisplayHomeAsUpEnabled(true);
@@ -151,7 +150,7 @@ public class MucDetailsActivity extends XmppActivity {
}
this.users.clear();
this.users.addAll(conversation.getMucOptions().getUsers());
- contactsAdapter.notifyDataSetChanged();
+ //contactsAdapter.notifyDataSetChanged();
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
membersView.removeAllViews();
for(User contact : conversation.getMucOptions().getUsers()) {
@@ -163,7 +162,7 @@ public class MucDetailsActivity extends XmppActivity {
role.setText(getReadableRole(contact.getRole()));
ImageView imageView = (ImageView) view
.findViewById(R.id.contact_photo);
- imageView.setImageBitmap(UIHelper.getUnknownContactPicture(contact.getName(), 90));
+ imageView.setImageBitmap(UIHelper.getContactPictureByName(contact.getName(), 90));
membersView.addView(view);
}
}