You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2013/05/21 22:33:33 UTC

android commit: CB-3064: We need to re-create the config object on resume, always create an object on init.

Updated Branches:
  refs/heads/master f38a2ae14 -> 77eada7db


CB-3064: We need to re-create the config object on resume, always create an object on init.


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/77eada7d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/77eada7d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/77eada7d

Branch: refs/heads/master
Commit: 77eada7dbda77799cfe1781aa6fcd6e8430a81b3
Parents: f38a2ae
Author: Joe Bowser <bo...@apache.org>
Authored: Tue May 21 13:32:57 2013 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Tue May 21 13:33:09 2013 -0700

----------------------------------------------------------------------
 framework/src/org/apache/cordova/Config.java |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/77eada7d/framework/src/org/apache/cordova/Config.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/Config.java b/framework/src/org/apache/cordova/Config.java
index ccf49c5..c2ced34 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.