Bug fix: Application wait forever when you remove the map on Android
MODIFY
src/android/plugin/google/maps/PluginMarker.java
src/android/plugin/google/maps/PluginMarker.java
@@ -100,6 +100,7 @@ public class PluginMarker extends MyPlugin implements MyPluginInterface {
protected void clear() {
synchronized (semaphoreAsync) {
semaphoreAsync.put("waitCnt", 2);
+ Log.d(TAG, "--->waitCnt = 2");
//--------------------------------------
// Cancel tasks
@@ -108,12 +109,14 @@ public class PluginMarker extends MyPlugin implements MyPluginInterface {
@Override
public void run() {
AsyncTask task;
+ if (iconLoadingTasks != null && iconLoadingTasks.size() > 0) {
int i, ilen = iconLoadingTasks.size();
for (i = 0; i < ilen; i++) {
task = iconLoadingTasks.remove(i);
task.cancel(true);
task = null;
}
+ }
iconLoadingTasks = null;
synchronized (semaphoreAsync) {
int waitCnt = semaphoreAsync.get("waitCnt");

Bug fix: Application wait forever when you remove the map on Android