summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorWalter Jang <wjang@google.com>2016-02-20 12:13:33 -0800
committerWalter Jang <wjang@google.com>2016-02-20 12:59:57 -0800
commit13103cd05bf911a496fccdf84e5ea6eb0be87910 (patch)
treede97e33d7ceb5103abc4738ec34e33ab7f41de55 /src/com/android
parentf8c8ac348cf217766a6626a5b7191a0de11f06d3 (diff)
downloadandroid_packages_apps_Contacts-13103cd05bf911a496fccdf84e5ea6eb0be87910.tar.gz
android_packages_apps_Contacts-13103cd05bf911a496fccdf84e5ea6eb0be87910.tar.bz2
android_packages_apps_Contacts-13103cd05bf911a496fccdf84e5ea6eb0be87910.zip
Don't auto format phone numbers when editor opens
The new behavior was introduced in ag/856515 to fix b/26754145 This causes contacts with phone numbers that do not have the standard formatting to show as changed when the editor is opened as then closed even when the user makes no edits. Bug 26754145 Bug 27247065 Change-Id: I9ff8443844dd5d419df5c50e3664b382edbec045
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/contacts/editor/TextFieldsEditorView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/contacts/editor/TextFieldsEditorView.java b/src/com/android/contacts/editor/TextFieldsEditorView.java
index 91b52d827..3086526d5 100644
--- a/src/com/android/contacts/editor/TextFieldsEditorView.java
+++ b/src/com/android/contacts/editor/TextFieldsEditorView.java
@@ -232,7 +232,7 @@ public class TextFieldsEditorView extends LabeledEditorView {
fieldView.setInputType(inputType);
if (inputType == InputType.TYPE_CLASS_PHONE) {
PhoneNumberFormatter.setPhoneNumberFormattingTextWatcher(
- getContext(), fieldView, /* formatAfterWatcherSet =*/ true);
+ getContext(), fieldView, /* formatAfterWatcherSet =*/ false);
fieldView.setTextDirection(View.TEXT_DIRECTION_LTR);
}
fieldView.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START);