update: bump up the version 2.0.0-beta2-20170524-2345
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta2-20170524-1900" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta2-20170524-2345" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="BaseClass" src="www/BaseClass.js">
<runs />

MODIFY
src/android/plugin/google/maps/CordovaGoogleMaps.java
src/android/plugin/google/maps/CordovaGoogleMaps.java
@@ -57,8 +57,6 @@ import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
@SuppressWarnings("deprecation")
public class CordovaGoogleMaps extends CordovaPlugin implements ViewTreeObserver.OnScrollChangedListener{
@@ -76,7 +74,6 @@ public class CordovaGoogleMaps extends CordovaPlugin implements ViewTreeObserver
private CallbackContext _saveCallbackContext = null;
public boolean initialized = false;
public PluginManager pluginManager;
- private static ExecutorService executorService = Executors.newFixedThreadPool(1); // Must be 1 thread.
private String CURRENT_URL;
@SuppressLint("NewApi") @Override
@@ -85,7 +82,7 @@ public class CordovaGoogleMaps extends CordovaPlugin implements ViewTreeObserver
if (root != null) {
return;
}
- LOG.setLogLevel(LOG.WARN);
+ LOG.setLogLevel(LOG.ERROR);
activity = cordova.getActivity();
final View view = webView.getView();
@@ -256,7 +253,7 @@ public class CordovaGoogleMaps extends CordovaPlugin implements ViewTreeObserver
@Override
public boolean execute(final String action, final JSONArray args, final CallbackContext callbackContext) throws JSONException {
- executorService.submit(new Runnable() {
+ cordova.getThreadPool().execute(new Runnable() {
@Override
public void run() {
try {

update: bump up the version 2.0.0-beta2-20170524-2345