From 76522e26b306350d61f2358f2f993fddfb30d76d Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 13 Jul 2019 08:35:59 +0300 Subject: [PATCH] whitespace --- app/src/main/java/net/ktnx/mobileledger/App.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/App.java b/app/src/main/java/net/ktnx/mobileledger/App.java index bd9b303a..b6ae697f 100644 --- a/app/src/main/java/net/ktnx/mobileledger/App.java +++ b/app/src/main/java/net/ktnx/mobileledger/App.java @@ -34,6 +34,11 @@ import static net.ktnx.mobileledger.ui.activity.SettingsActivity.PREF_KEY_SHOW_O public class App extends Application { public static App instance; private MobileLedgerDatabase dbHelper; + public static SQLiteDatabase getDatabase() { + if (instance == null) throw new RuntimeException("Application not created yet"); + + return instance.getDB(); + } @Override public void onCreate() { Logger.debug("flow", "App onCreate()"); @@ -62,11 +67,6 @@ public class App extends Application { super.onConfigurationChanged(newConfig); updateMonthNames(); } - public static SQLiteDatabase getDatabase() { - if (instance == null) throw new RuntimeException("Application not created yet"); - - return instance.getDB(); - } public SQLiteDatabase getDB() { if (dbHelper == null) initDb(); -- 2.39.5