diff options
| -rw-r--r-- | core/java/com/android/internal/app/ResolverListAdapter.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/java/com/android/internal/app/ResolverListAdapter.java b/core/java/com/android/internal/app/ResolverListAdapter.java index 04a186c3207e..094fb1e2f23c 100644 --- a/core/java/com/android/internal/app/ResolverListAdapter.java +++ b/core/java/com/android/internal/app/ResolverListAdapter.java @@ -689,17 +689,17 @@ public class ResolverListAdapter extends BaseAdapter { } public void bindLabel(CharSequence label, CharSequence subLabel, boolean showSubLabel) { - if (!TextUtils.equals(text.getText(), label)) { - text.setText(label); - } + text.setText(label); if (TextUtils.equals(label, subLabel)) { - subLabel = ""; + subLabel = null; } - if (showSubLabel || !TextUtils.equals(text2.getText(), subLabel)) { + text2.setText(subLabel); + if (showSubLabel || subLabel != null) { text2.setVisibility(View.VISIBLE); - text2.setText(subLabel); + } else { + text2.setVisibility(View.GONE); } itemView.setContentDescription(null); |