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
api-impl: misc additions for different apps
This commit is contained in:
@@ -786,4 +786,14 @@ public class Context extends Object {
|
||||
/* FIXME: should be a different context, and return different storage locations */
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean deleteSharedPreferences(String name) {
|
||||
getSharedPrefsFile(name).delete();
|
||||
sharedPrefs.remove(name);
|
||||
return true;
|
||||
}
|
||||
|
||||
public String getPackageResourcePath() {
|
||||
return native_get_apk_path();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user