Skip to content

Commit

Permalink
Bug fix for #55
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Baar committed Mar 27, 2020
1 parent c2ef976 commit 4034af4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 3.3.1 (2020-03-27)

- closes #55


# 3.3.0 (2020-03-25)

- merge PR #54 "move Geocoding in an IntentService to not block the main thread" (closes #47, thank you @DavidWiesner)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-nativegeocoder",
"version": "3.3.0",
"version": "3.3.1",
"description": "Cordova plugin for native forward and reverse geocoding",
"cordova": {
"id": "cordova-plugin-nativegeocoder",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<plugin id="cordova-plugin-nativegeocoder" version="3.3.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="cordova-plugin-nativegeocoder" version="3.3.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>NativeGeocoder</name>
<description>Cordova plugin for native forward and reverse geocoding</description>
<license>MIT</license>
Expand Down
2 changes: 1 addition & 1 deletion src/android/NativeGeocoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private void forwardGeocode(String addressString, JSONObject options, CallbackCo
Intent intent = new Intent(this.cordova.getActivity(), GeocodingIntentService.class);
intent.putExtra(GeocodingIntentService.RECEIVER, new AddressResultReceiver(callbackContext));
intent.putExtra(GeocodingIntentService.ADDRESS_STRING_DATA_EXTRA, addressString);
intent.putExtra(GeocodingIntentService.OPTIONS_DATA_EXTRA, options.toString());
intent.putExtra(GeocodingIntentService.OPTIONS_DATA_EXTRA, options != null ? options.toString() : null);
this.cordova.getActivity().startService(intent);
}

Expand Down

0 comments on commit 4034af4

Please sign in to comment.