Fix bugs when dropping down editor type list in Editor UI.(2/2)
When loading editor type list from Editor, overall number should
not be checked since the editor has already been added.
For the other cases we will keep it, just like the old logic.
BUG 25929524
Change-Id: I008c2777a62c652375a9c498e53e778e9358f904
diff --git a/src/com/android/contacts/editor/LabeledEditorView.java b/src/com/android/contacts/editor/LabeledEditorView.java
index 6fb07a6..7be748e 100644
--- a/src/com/android/contacts/editor/LabeledEditorView.java
+++ b/src/com/android/contacts/editor/LabeledEditorView.java
@@ -458,7 +458,7 @@
final String customText = editText.getText().toString().trim();
if (ContactsUtils.isGraphic(customText)) {
final List<EditType> allTypes =
- RawContactModifier.getValidTypes(mState, mKind, null);
+ RawContactModifier.getValidTypes(mState, mKind, null, true, null, true);
mType = null;
for (EditType editType : allTypes) {
if (editType.customColumn != null) {
@@ -598,7 +598,7 @@
}
}
- addAll(RawContactModifier.getValidTypes(mState, mKind, mType));
+ addAll(RawContactModifier.getValidTypes(mState, mKind, mType, true, null, false));
}
public boolean hasCustomSelection() {