CB-9382 [Android] Fix KeepRunning setting when Plugin activity is showed. This closes #200

This commit is contained in:
sgrebnov 2015-07-20 14:14:50 +03:00 committed by Vladimir Kotikov
parent 2fc86e2833
commit 32b72756f3

View File

@ -235,7 +235,10 @@ public class CordovaActivity extends Activity {
LOG.d(TAG, "Paused the activity.");
if (this.appView != null) {
this.appView.handlePause(this.keepRunning);
// CB-9382 If there is an activity that started for result and main activity is waiting for callback
// result, we shoudn't stop WebView Javascript timers, as activity for result might be using them
boolean keepRunning = this.keepRunning || this.cordovaInterface.activityResultCallback != null;
this.appView.handlePause(keepRunning);
}
}