From 716e7dded5647e30739a35a50fdb661180959a16 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 19 Jul 2020 11:43:27 +0300 Subject: [PATCH] fix argument annotation --- app/src/main/java/net/ktnx/mobileledger/App.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;"); -- 2.39.5