summaryrefslogtreecommitdiff
path: root/src/com
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-13 12:57:54 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-13 12:57:54 -0800
commit6bb151d25c70079e35de2000cb1d7202410ac29a (patch)
tree23784b04eb59582d355c22e957de71c690940f65 /src/com
parent23b602393d20931929b2d91d43482ca1c3f5e9a5 (diff)
downloadImProvider-6bb151d25c70079e35de2000cb1d7202410ac29a.tar.gz
auto import from //branches/cupcake/...@131421
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/providers/im/ProviderListItem.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/providers/im/ProviderListItem.java b/src/com/android/providers/im/ProviderListItem.java
index 29f5514..958e067 100644
--- a/src/com/android/providers/im/ProviderListItem.java
+++ b/src/com/android/providers/im/ProviderListItem.java
@@ -42,6 +42,7 @@ public class ProviderListItem extends LinearLayout {
private TextView mChatView;
private View mUnderBubble;
private Drawable mBubbleDrawable, mDefaultBackground;
+ private View mLoginNameSection;
private int mProviderIdColumn;
private int mProviderFullnameColumn;
@@ -62,6 +63,7 @@ public class ProviderListItem extends LinearLayout {
mLoginName = (TextView) findViewById(R.id.loginName);
mChatView = (TextView) findViewById(R.id.conversations);
mUnderBubble = (View) findViewById(R.id.underBubble);
+ mLoginNameSection = (View) findViewById(R.id.loginNameSection);
mBubbleDrawable = getResources().getDrawable(R.drawable.bubble);
mDefaultBackground = getResources().getDrawable(R.drawable.default_background);
@@ -94,6 +96,7 @@ public class ProviderListItem extends LinearLayout {
mUnderBubble.setBackgroundDrawable(mDefaultBackground);
if (!cursor.isNull(mActiveAccountIdColumn)) {
+ mLoginNameSection.setVisibility(View.VISIBLE);
providerName.setVisibility(View.VISIBLE);
providerName.setText(providerDisplayName);
loginName.setText(cursor.getString(mActiveAccountUserNameColumn));
@@ -136,11 +139,9 @@ public class ProviderListItem extends LinearLayout {
}
} else {
// No active account, show add account
- providerName.setVisibility(View.GONE);
- statusIcon.setVisibility(View.GONE);
- chatView.setVisibility(View.GONE);
+ mLoginNameSection.setVisibility(View.GONE);
- loginName.setText(providerDisplayName);
+ mProviderName.setText(providerDisplayName);
}
}