Showing
1 changed file
with
8 additions
and
1 deletions
| @@ -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 |
-
Please register or login to post a comment