commit | abdbfc3918f227b6a0e07ba7230de969bbb77d3d | [log] [tgz] |
---|---|---|
author | Daniel Lehmann <lehmannd@google.com> | Fri Feb 26 19:10:35 2010 -0800 |
committer | Daniel Lehmann <lehmannd@google.com> | Fri Feb 26 19:10:35 2010 -0800 |
tree | e2fccfa9a3ad3f329710ba7d3b69fe0f5f3fbf43 | |
parent | da5fd9039bd303f5e4634a31ed9a00d58d679b39 [diff] |
Set focus to field being edited after changing type Bug: 1382329 Change-Id: Ie0a885175f0dcbddaa9f15f676a118d2cf6d32ad
diff --git a/src/com/android/contacts/ui/widget/GenericEditorView.java b/src/com/android/contacts/ui/widget/GenericEditorView.java index 40ed5cd..ee5951f 100644 --- a/src/com/android/contacts/ui/widget/GenericEditorView.java +++ b/src/com/android/contacts/ui/widget/GenericEditorView.java
@@ -290,6 +290,8 @@ mEntry.put(mKind.typeColumn, mType.rawValue); mEntry.put(mType.customColumn, customText); rebuildLabel(); + if (!mFields.hasFocus()) + mFields.requestFocus(); } } }); @@ -346,6 +348,8 @@ mType = selected; mEntry.put(mKind.typeColumn, mType.rawValue); rebuildLabel(); + if (!mFields.hasFocus()) + mFields.requestFocus(); } } };