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 some methods needed for NewPipe release 0.27.0
This commit is contained in:
@@ -69,6 +69,10 @@ public class ValueAnimator extends Animator {
|
||||
return value_end;
|
||||
}
|
||||
|
||||
public float getAnimatedFraction() {
|
||||
return 1.0f;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementors of this interface can add themselves as update listeners
|
||||
* to an <code>ValueAnimator</code> instance to receive callbacks on every animation
|
||||
|
||||
@@ -266,6 +266,10 @@ public class Paint {
|
||||
|
||||
public void clearShadowLayer() {}
|
||||
|
||||
public FontMetrics getFontMetrics() {
|
||||
return new FontMetrics();
|
||||
}
|
||||
|
||||
private native long native_constructor();
|
||||
private native void native_set_antialias(long skia_paint, boolean aa);
|
||||
private native void native_set_color(long skia_paint, int color);
|
||||
|
||||
@@ -256,6 +256,8 @@ public class Drawable {
|
||||
|
||||
public void setAutoMirrored(boolean mirrored) {}
|
||||
|
||||
public void jumpToCurrentState() {}
|
||||
|
||||
protected static native long native_paintable_from_path(String path);
|
||||
protected native long native_constructor();
|
||||
protected native void native_invalidate(long paintable);
|
||||
|
||||
Reference in New Issue
Block a user