mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +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;
|
private static Config self = null;
|
||||||
|
|
||||||
public static void init(Activity action) {
|
public static void init(Activity action) {
|
||||||
if (self == null) {
|
//Just re-initialize this! Seriously, we lose this all the time
|
||||||
self = new Config(action);
|
self = new Config(action);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Intended to be used for testing only; creates an empty configuration.
|
// Intended to be used for testing only; creates an empty configuration.
|
||||||
|
Loading…
Reference in New Issue
Block a user