]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fix argument annotation
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 19 Jul 2020 08:43:27 +0000 (11:43 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 19 Jul 2020 08:43:27 +0000 (11:43 +0300)
app/src/main/java/net/ktnx/mobileledger/App.java

index 68f1b9c43c1e14f6f999c9edbfcf832839d539ce..027fc73dd6afa61785843b905747e626cbf025ec 100644 (file)
@@ -29,6 +29,8 @@ import net.ktnx.mobileledger.utils.Globals;
 import net.ktnx.mobileledger.utils.Logger;
 import net.ktnx.mobileledger.utils.MobileLedgerDatabase;
 
+import org.jetbrains.annotations.NotNull;
+
 import java.net.Authenticator;
 import java.net.MalformedURLException;
 import java.net.PasswordAuthentication;
@@ -93,14 +95,15 @@ public class App extends Application {
         super.onTerminate();
     }
     @Override
-    public void onConfigurationChanged(Configuration newConfig) {
+    public void onConfigurationChanged(@NotNull Configuration newConfig) {
         super.onConfigurationChanged(newConfig);
         prepareMonthNames(true);
         Data.refreshCurrencyData(Locale.getDefault());
         Data.locale.setValue(Locale.getDefault());
     }
     public SQLiteDatabase getDB() {
-        if (dbHelper == null) initDb();
+        if (dbHelper == null)
+            initDb();
 
         final SQLiteDatabase db = dbHelper.getWritableDatabase();
         db.execSQL("pragma case_sensitive_like=ON;");