]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/App.java
move setting case_sensitive_like=ON to helper.onOpen
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / App.java
index 68f1b9c43c1e14f6f999c9edbfcf832839d539ce..b47e6d7faf14533a272517e4ac971badb0266061 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,17 +95,17 @@ 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;");
 
         return db;
     }