mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
CB-3064: We need to re-create the config object on resume, always create an object on init.
This commit is contained in:
parent
f38a2ae14a
commit
77eada7dbd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user