Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.4.6] - April 29, 2020

* Fixed openExistingContact in Android and in example (@engylemure)

## [0.4.5] - April 26, 2020

* Fixed crashing where activity result coming back from another plugin and not handled (@lidongze91)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To use this plugin, add `contacts_service` as a [dependency in your `pubspec.yam
For example:
```yaml
dependencies:
contacts_service: ^0.4.5
contacts_service: ^0.4.6
```

## Permissions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void onMethodCall(MethodCall call, Result result) {
}
break;
} case "openExistingContact" :{
final Contact contact = Contact.fromMap((HashMap)call.arguments);
final Contact contact = Contact.fromMap((HashMap)call.argument("contact"));
if (delegate != null) {
delegate.setResult(result);
delegate.openExistingContact(contact);
Expand Down Expand Up @@ -297,6 +297,7 @@ void openExistingContact(Contact contact) {
finishWithResult(FORM_COULD_NOT_BE_OPEN);
}
} catch(Exception e) {
finishWithResult(FORM_COULD_NOT_BE_OPEN);
}
}

Expand Down
1 change: 0 additions & 1 deletion example/lib/contacts_list_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ class ContactDetailsPage extends StatelessWidget {
try {
var contact = await ContactsService.openExistingContact(_contact,
iOSLocalizedLabels: iOSLocalizedLabels);
print(contact.emails.first.label);
if (onContactDeviceSave != null) {
onContactDeviceSave(contact);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: contacts_service
description: A Flutter plugin to retrieve and manage contacts on Android and iOS devices.
version: 0.4.5
version: 0.4.6
authors:
- Lukas Dickie <lukas@changefly.com>
- Clovis Nicolas <clovisnicolas0@gmail.com>
Expand Down