From 77eada7dbda77799cfe1781aa6fcd6e8430a81b3 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Tue, 21 May 2013 13:32:57 -0700 Subject: [PATCH] CB-3064: We need to re-create the config object on resume, always create an object on init. --- framework/src/org/apache/cordova/Config.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/src/org/apache/cordova/Config.java b/framework/src/org/apache/cordova/Config.java index ccf49c54..c2ced34b 100644 --- a/framework/src/org/apache/cordova/Config.java +++ b/framework/src/org/apache/cordova/Config.java @@ -50,9 +50,8 @@ public class Config { private static Config self = null; public static void init(Activity action) { - if (self == null) { - self = new Config(action); - } + //Just re-initialize this! Seriously, we lose this all the time + self = new Config(action); } // Intended to be used for testing only; creates an empty configuration.