You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
add complete java side of sqlite implementation
Mostly taken from https://www.sqlite.org/android which is forked from AOSPs implementation
This commit is contained in:
@@ -6,4 +6,13 @@ import android.net.Uri;
|
||||
public class ContentResolver {
|
||||
public final void registerContentObserver(Uri uri, boolean notifyForDescendants, ContentObserver observer) {
|
||||
}
|
||||
public final void unregisterContentObserver(ContentObserver observer) {
|
||||
}
|
||||
public void notifyChange(Uri uri, ContentObserver observer) {
|
||||
}
|
||||
public int getUserId() {
|
||||
return 0;
|
||||
}
|
||||
public final void registerContentObserver(Uri uri, boolean notifyForDescendants, ContentObserver observer, int userHandle) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -360,4 +360,11 @@ public class Context extends Object {
|
||||
}
|
||||
|
||||
public boolean isRestricted() {return false;}
|
||||
|
||||
public File getDatabasePath(String dbName) {
|
||||
File databaseDir = new File(getDataDirFile(), "databases");
|
||||
if (!databaseDir.exists())
|
||||
databaseDir.mkdirs();
|
||||
return new File(databaseDir, dbName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user