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 APIs needed for non legacy NewPipe version
This commit is contained in:
@@ -13,6 +13,7 @@ import android.content.res.AssetManager;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.hardware.input.InputManager;
|
||||
import android.hardware.SensorManager;
|
||||
import android.hardware.display.DisplayManager;
|
||||
@@ -374,6 +375,10 @@ public class Context extends Object {
|
||||
return getResources().getText(resId);
|
||||
}
|
||||
|
||||
public final Drawable getDrawable(int resId) {
|
||||
return getResources().getDrawable(resId);
|
||||
}
|
||||
|
||||
public boolean isRestricted() {return false;}
|
||||
|
||||
public File getDatabasePath(String dbName) {
|
||||
|
||||
Reference in New Issue
Block a user