Merge "Bring action bar up to spec (E2)"
diff --git a/src/com/android/contacts/editor/LabeledEditorView.java b/src/com/android/contacts/editor/LabeledEditorView.java
index 63d75d8..61c1061 100644
--- a/src/com/android/contacts/editor/LabeledEditorView.java
+++ b/src/com/android/contacts/editor/LabeledEditorView.java
@@ -300,8 +300,8 @@
mEntry.getAsString(mType.customColumn),
getContext().getString(mKind.titleRes)));
} else {
- mLabel.setSelection(mEditTypeAdapter.getPosition(mType));
if (mType != null) {
+ mLabel.setSelection(mEditTypeAdapter.getPosition(mType));
mDeleteContainer.setContentDescription(
getContext().getString(R.string.editor_delete_view_description,
getContext().getString(mType.labelRes),
@@ -408,10 +408,8 @@
mLabel.setEnabled(!readOnly && isEnabled());
mLabel.setContentDescription(getContext().getResources().getString(mKind.titleRes));
- if (hasTypes) {
- mType = RawContactModifier.getCurrentType(entry, kind);
- rebuildLabel();
- }
+ mType = RawContactModifier.getCurrentType(entry, kind);
+ rebuildLabel();
}
public ValuesDelta getValues() {