Panagiotis Triantafyllou

remove code

......@@ -2,7 +2,6 @@ package ly.warp.sdk.utils;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
......@@ -10,8 +9,6 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatDelegate;
import ly.warp.sdk.db.WarplyDBHelper;
/**
* Created by Panagiotis Triantafyllou on 05/Αυγ/2022.
*/
......@@ -19,14 +16,8 @@ public class WarplyProvider extends ContentProvider {
@Override
public boolean onCreate() {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
// AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
// Initialize the database helper
Context context = getContext();
if (context != null) {
WarplyDBHelper dbHelper = WarplyDBHelper.getInstance(context);
dbHelper.initialize(); // This will initialize the database connection on a background thread
}
// ViewPump.init(ViewPump.builder()
// .addInterceptor(new CalligraphyInterceptor(
// new CalligraphyConfig.Builder()
......@@ -46,13 +37,6 @@ public class WarplyProvider extends ContentProvider {
@Override
public void shutdown() {
// Get the database helper instance and shut it down
Context context = getContext();
if (context != null) {
WarplyDBHelper dbHelper = WarplyDBHelper.getInstance(context);
dbHelper.shutdown();
}
super.shutdown();
}
......