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 stubs and fixes for several apps including F-Droid and AuroraStore
This commit is contained in:
@@ -245,6 +245,8 @@ public class Context extends Object {
|
||||
}
|
||||
|
||||
public final Object getSystemService(Class<?> serviceClass) throws InstantiationException, IllegalAccessException, InvocationTargetException {
|
||||
if (serviceClass == LayoutInflater.class)
|
||||
return layout_inflater;
|
||||
return serviceClass.getConstructors()[0].newInstance();
|
||||
}
|
||||
|
||||
@@ -706,4 +708,13 @@ public class Context extends Object {
|
||||
public Drawable getWallpaper() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String[] databaseList() {
|
||||
File databaseDir = new File(getDataDirFile(), "databases");
|
||||
if (databaseDir.exists()) {
|
||||
return databaseDir.list();
|
||||
} else {
|
||||
return new String[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user