From: Damyan Ivanov Date: Sun, 19 Jul 2020 08:43:27 +0000 (+0300) Subject: fix argument annotation X-Git-Tag: v0.15.0~81 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=716e7dded5647e30739a35a50fdb661180959a16;p=mobile-ledger.git fix argument annotation --- diff --git a/app/src/main/java/net/ktnx/mobileledger/App.java b/app/src/main/java/net/ktnx/mobileledger/App.java index 68f1b9c4..027fc73d 100644 --- a/app/src/main/java/net/ktnx/mobileledger/App.java +++ b/app/src/main/java/net/ktnx/mobileledger/App.java @@ -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;");