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 Context.deleteDatabase() which is needed for the CTS test
This commit is contained in:
@@ -659,6 +659,11 @@ public class Context extends Object {
|
||||
return db;
|
||||
}
|
||||
|
||||
public boolean deleteDatabase(String name) {
|
||||
File dbFile = getDatabasePath(name);
|
||||
return dbFile.delete();
|
||||
}
|
||||
|
||||
public Context createConfigurationContext(Configuration configuration) {
|
||||
return new Context();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user