mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
CB-9382 [Android] Fix KeepRunning setting when Plugin activity is showed. This closes #200
This commit is contained in:
parent
2fc86e2833
commit
32b72756f3
@ -235,7 +235,10 @@ public class CordovaActivity extends Activity {
|
|||||||
LOG.d(TAG, "Paused the activity.");
|
LOG.d(TAG, "Paused the activity.");
|
||||||
|
|
||||||
if (this.appView != null) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user