Showing
1 changed file
with
1 additions
and
17 deletions
... | @@ -2,7 +2,6 @@ package ly.warp.sdk.utils; | ... | @@ -2,7 +2,6 @@ package ly.warp.sdk.utils; |
2 | 2 | ||
3 | import android.content.ContentProvider; | 3 | import android.content.ContentProvider; |
4 | import android.content.ContentValues; | 4 | import android.content.ContentValues; |
5 | -import android.content.Context; | ||
6 | import android.database.Cursor; | 5 | import android.database.Cursor; |
7 | import android.net.Uri; | 6 | import android.net.Uri; |
8 | 7 | ||
... | @@ -10,8 +9,6 @@ import androidx.annotation.NonNull; | ... | @@ -10,8 +9,6 @@ import androidx.annotation.NonNull; |
10 | import androidx.annotation.Nullable; | 9 | import androidx.annotation.Nullable; |
11 | import androidx.appcompat.app.AppCompatDelegate; | 10 | import androidx.appcompat.app.AppCompatDelegate; |
12 | 11 | ||
13 | -import ly.warp.sdk.db.WarplyDBHelper; | ||
14 | - | ||
15 | /** | 12 | /** |
16 | * Created by Panagiotis Triantafyllou on 05/Αυγ/2022. | 13 | * Created by Panagiotis Triantafyllou on 05/Αυγ/2022. |
17 | */ | 14 | */ |
... | @@ -19,14 +16,8 @@ public class WarplyProvider extends ContentProvider { | ... | @@ -19,14 +16,8 @@ public class WarplyProvider extends ContentProvider { |
19 | 16 | ||
20 | @Override | 17 | @Override |
21 | public boolean onCreate() { | 18 | public boolean onCreate() { |
22 | - AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO); | 19 | +// AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO); |
23 | 20 | ||
24 | - // Initialize the database helper | ||
25 | - Context context = getContext(); | ||
26 | - if (context != null) { | ||
27 | - WarplyDBHelper dbHelper = WarplyDBHelper.getInstance(context); | ||
28 | - dbHelper.initialize(); // This will initialize the database connection on a background thread | ||
29 | - } | ||
30 | // ViewPump.init(ViewPump.builder() | 21 | // ViewPump.init(ViewPump.builder() |
31 | // .addInterceptor(new CalligraphyInterceptor( | 22 | // .addInterceptor(new CalligraphyInterceptor( |
32 | // new CalligraphyConfig.Builder() | 23 | // new CalligraphyConfig.Builder() |
... | @@ -46,13 +37,6 @@ public class WarplyProvider extends ContentProvider { | ... | @@ -46,13 +37,6 @@ public class WarplyProvider extends ContentProvider { |
46 | 37 | ||
47 | @Override | 38 | @Override |
48 | public void shutdown() { | 39 | public void shutdown() { |
49 | - // Get the database helper instance and shut it down | ||
50 | - Context context = getContext(); | ||
51 | - if (context != null) { | ||
52 | - WarplyDBHelper dbHelper = WarplyDBHelper.getInstance(context); | ||
53 | - dbHelper.shutdown(); | ||
54 | - } | ||
55 | - | ||
56 | super.shutdown(); | 40 | super.shutdown(); |
57 | } | 41 | } |
58 | 42 | ... | ... |
-
Please register or login to post a comment