The Real Fix #666
This commit is contained in:
parent
d8cbb18587
commit
c3c5e0415d
|
@ -139,6 +139,13 @@ public class GBApplication extends Application {
|
||||||
prefs = new Prefs(sharedPrefs);
|
prefs = new Prefs(sharedPrefs);
|
||||||
gbPrefs = new GBPrefs(prefs);
|
gbPrefs = new GBPrefs(prefs);
|
||||||
|
|
||||||
|
if (!GBEnvironment.isEnvironmentSetup()) {
|
||||||
|
GBEnvironment.setupEnvironment(GBEnvironment.createDeviceEnvironment());
|
||||||
|
// setup db after the environment is set up, but don't do it in test mode
|
||||||
|
// in test mode, it's done individually, see TestBase
|
||||||
|
setupDatabase();
|
||||||
|
}
|
||||||
|
|
||||||
// don't do anything here before we set up logging, otherwise
|
// don't do anything here before we set up logging, otherwise
|
||||||
// slf4j may be implicitly initialized before we properly configured it.
|
// slf4j may be implicitly initialized before we properly configured it.
|
||||||
setupLogging(isFileLoggingEnabled());
|
setupLogging(isFileLoggingEnabled());
|
||||||
|
@ -149,13 +156,6 @@ public class GBApplication extends Application {
|
||||||
|
|
||||||
setupExceptionHandler();
|
setupExceptionHandler();
|
||||||
|
|
||||||
if (!GBEnvironment.isEnvironmentSetup()) {
|
|
||||||
GBEnvironment.setupEnvironment(GBEnvironment.createDeviceEnvironment());
|
|
||||||
// setup db after the environment is set up, but don't do it in test mode
|
|
||||||
// in test mode, it's done individually, see TestBase
|
|
||||||
setupDatabase();
|
|
||||||
}
|
|
||||||
|
|
||||||
deviceManager = new DeviceManager(this);
|
deviceManager = new DeviceManager(this);
|
||||||
|
|
||||||
deviceService = createDeviceService();
|
deviceService = createDeviceService();
|
||||||
|
|
Loading…
Reference in New Issue