CB-3064: One line fix for the error where the config wasn't being read. Will have to add doc step for CordovaWebView

This commit is contained in:
Joe Bowser 2013-04-23 13:53:10 -07:00
parent a17c7b9bbf
commit 934cf32163

View File

@ -679,8 +679,16 @@ public class DroidGap extends Activity implements CordovaInterface {
*/ */
protected void onResume() { protected void onResume() {
super.onResume(); super.onResume();
//Reload the configuration
Config.init(this);
LOG.d(TAG, "Resuming the App"); 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) { if (this.activityState == ACTIVITY_STARTING) {
this.activityState = ACTIVITY_RUNNING; this.activityState = ACTIVITY_RUNNING;
return; return;