Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2025-09-02 18:21:21 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
72ad3c7aa831140e0bc62f0d26b0b06ed5a5e383
72ad3c7a
1 parent
b5f512c0
remove code
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
17 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyProvider.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyProvider.java
View file @
72ad3c7
...
...
@@ -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
();
}
...
...
Please
register
or
login
to post a comment