1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 20:36:51 +01:00

Small cleanup

This commit is contained in:
cpfeiffer 2016-08-31 00:03:20 +02:00
parent d9283d0f22
commit 6340bcff15

View File

@ -124,16 +124,11 @@ public class GBApplication extends Application {
deviceManager = new DeviceManager(this);
deviceService = createDeviceService();
// mActivityDatabaseHandler = new ActivityDatabaseHandler(context);
loadBlackList();
if (isRunningMarshmallowOrLater()) {
notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
}
// for testing DB stuff
// SQLiteDatabase db = mActivityDatabaseHandler.getWritableDatabase();
// db.close();
}
public static void setupLogging(boolean enabled) {
@ -190,7 +185,6 @@ public class GBApplication extends Application {
try {
if (dbLock.tryLock(30, TimeUnit.SECONDS)) {
return lockHandler;
// return mActivityDatabaseHandler;
}
} catch (InterruptedException ex) {
Log.i(TAG, "Interrupted while waiting for DB lock");