mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 03:07:32 +01:00
Fix potential NPE, setup environment earlier
This commit is contained in:
parent
0209b1b403
commit
2fa166e381
@ -120,12 +120,13 @@ public class GBApplication extends Application {
|
|||||||
|
|
||||||
setupExceptionHandler();
|
setupExceptionHandler();
|
||||||
|
|
||||||
|
GB.environment = GBEnvironment.createDeviceEnvironment();
|
||||||
|
|
||||||
setupDatabase(this);
|
setupDatabase(this);
|
||||||
|
|
||||||
deviceManager = new DeviceManager(this);
|
deviceManager = new DeviceManager(this);
|
||||||
|
|
||||||
deviceService = createDeviceService();
|
deviceService = createDeviceService();
|
||||||
GB.environment = GBEnvironment.createDeviceEnvironment();
|
|
||||||
// mActivityDatabaseHandler = new ActivityDatabaseHandler(context);
|
// mActivityDatabaseHandler = new ActivityDatabaseHandler(context);
|
||||||
loadBlackList();
|
loadBlackList();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user