From 934cf3216377e9235ceb594238596dc6cc606397 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Tue, 23 Apr 2013 13:53:10 -0700 Subject: [PATCH] CB-3064: One line fix for the error where the config wasn't being read. Will have to add doc step for CordovaWebView --- framework/src/org/apache/cordova/DroidGap.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/framework/src/org/apache/cordova/DroidGap.java b/framework/src/org/apache/cordova/DroidGap.java index bb895e25..3c6610f6 100755 --- a/framework/src/org/apache/cordova/DroidGap.java +++ b/framework/src/org/apache/cordova/DroidGap.java @@ -679,8 +679,16 @@ public class DroidGap extends Activity implements CordovaInterface { */ protected void onResume() { super.onResume(); + //Reload the configuration + Config.init(this); LOG.d(TAG, "Resuming the App"); + + + //Code to test CB-3064 + String errorUrl = this.getStringProperty("errorUrl", null); + LOG.d(TAG, "CB-3064: The errorUrl is " + errorUrl); + if (this.activityState == ACTIVITY_STARTING) { this.activityState = ACTIVITY_RUNNING; return;