Loading src/com/android/contacts/ui/widget/GenericEditorView.java +11 −9 Original line number Diff line number Diff line Loading @@ -113,6 +113,7 @@ public class GenericEditorView extends RelativeLayout implements Editor, View.On mDelete.setVisibility(deletable ? View.VISIBLE : View.INVISIBLE); } @Override public void setEnabled(boolean enabled) { mLabel.setEnabled(enabled); final int count = mFields.getChildCount(); Loading Loading @@ -304,16 +305,17 @@ public class GenericEditorView extends RelativeLayout implements Editor, View.On public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); if (mType.customColumn != null) { final EditType selected = validTypes.get(which); if (selected.customColumn != null) { // Show custom label dialog if requested by type. // // Only when the custum value input in the next step is correct one. // this method also set the type value to what the user requested here. mPendingType = validTypes.get(which); mPendingType = selected; createCustomDialog().show(); } else { // User picked type, and we're sure it's ok to actually write the entry. mType = validTypes.get(which); mType = selected; mEntry.put(mKind.typeColumn, mType.rawValue); rebuildLabel(); } Loading Loading
src/com/android/contacts/ui/widget/GenericEditorView.java +11 −9 Original line number Diff line number Diff line Loading @@ -113,6 +113,7 @@ public class GenericEditorView extends RelativeLayout implements Editor, View.On mDelete.setVisibility(deletable ? View.VISIBLE : View.INVISIBLE); } @Override public void setEnabled(boolean enabled) { mLabel.setEnabled(enabled); final int count = mFields.getChildCount(); Loading Loading @@ -304,16 +305,17 @@ public class GenericEditorView extends RelativeLayout implements Editor, View.On public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); if (mType.customColumn != null) { final EditType selected = validTypes.get(which); if (selected.customColumn != null) { // Show custom label dialog if requested by type. // // Only when the custum value input in the next step is correct one. // this method also set the type value to what the user requested here. mPendingType = validTypes.get(which); mPendingType = selected; createCustomDialog().show(); } else { // User picked type, and we're sure it's ok to actually write the entry. mType = validTypes.get(which); mType = selected; mEntry.put(mKind.typeColumn, mType.rawValue); rebuildLabel(); } Loading