Commit d4ddd9f4e7a0a029f392ccca82aa050f7271f6e9

Authored by “gaiyaguang”
1 parent 2635ce9c

联系人

@@ -857,8 +857,15 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> { @@ -857,8 +857,15 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> {
857 _getContactData() async { 857 _getContactData() async {
858 Contact contact = await _contactPicker.selectContactWithNative(); 858 Contact contact = await _contactPicker.selectContactWithNative();
859 setState(() { 859 setState(() {
  860 + String fullName;
  861 + if (contact.fullName.compareTo(contact.phoneNumber) == 0) {
  862 + fullName = '';
  863 + } else {
  864 + fullName = contact.fullName;
  865 + }
  866 +
860 _notebookDetailChangeModel.phoneController.text = contact.phoneNumber; 867 _notebookDetailChangeModel.phoneController.text = contact.phoneNumber;
861 - _notebookDetailChangeModel.nameController.text = contact.fullName; 868 + _notebookDetailChangeModel.nameController.text = fullName;
862 }); 869 });
863 } 870 }
864 871