Skip to content

Commit 7a4e175

Browse files
authored
Merge pull request #112 from lukasgit/staging
Sync staging 0_4_6 with master
2 parents 07ae865 + 36ef27e commit 7a4e175

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.4.6] - April 29, 2020
2+
3+
* Fixed openExistingContact in Android and in example (@engylemure)
4+
15
## [0.4.5] - April 26, 2020
26

37
* Fixed crashing where activity result coming back from another plugin and not handled (@lidongze91)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To use this plugin, add `contacts_service` as a [dependency in your `pubspec.yam
1212
For example:
1313
```yaml
1414
dependencies:
15-
contacts_service: ^0.4.5
15+
contacts_service: ^0.4.6
1616
```
1717
1818
## Permissions

android/src/main/java/flutter/plugins/contactsservice/contactsservice/ContactsServicePlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void onMethodCall(MethodCall call, Result result) {
132132
}
133133
break;
134134
} case "openExistingContact" :{
135-
final Contact contact = Contact.fromMap((HashMap)call.arguments);
135+
final Contact contact = Contact.fromMap((HashMap)call.argument("contact"));
136136
if (delegate != null) {
137137
delegate.setResult(result);
138138
delegate.openExistingContact(contact);
@@ -297,6 +297,7 @@ void openExistingContact(Contact contact) {
297297
finishWithResult(FORM_COULD_NOT_BE_OPEN);
298298
}
299299
} catch(Exception e) {
300+
finishWithResult(FORM_COULD_NOT_BE_OPEN);
300301
}
301302
}
302303

example/lib/contacts_list_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ class ContactDetailsPage extends StatelessWidget {
134134
try {
135135
var contact = await ContactsService.openExistingContact(_contact,
136136
iOSLocalizedLabels: iOSLocalizedLabels);
137-
print(contact.emails.first.label);
138137
if (onContactDeviceSave != null) {
139138
onContactDeviceSave(contact);
140139
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: contacts_service
22
description: A Flutter plugin to retrieve and manage contacts on Android and iOS devices.
3-
version: 0.4.5
3+
version: 0.4.6
44
authors:
55
- Lukas Dickie <lukas@changefly.com>
66
- Clovis Nicolas <clovisnicolas0@gmail.com>

0 commit comments

Comments
 (0)