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 more API stubs for NewPipe
This commit is contained in:
@@ -1255,7 +1255,9 @@ public class View extends Object {
|
||||
public void setTranslationX(float translationX) {}
|
||||
public void setTranslationY(float translationY) {}
|
||||
|
||||
public void setAlpha(float alpha) {}
|
||||
public void setAlpha(float alpha) {
|
||||
setVisibility((alpha == 0.f) ? INVISIBLE : VISIBLE);
|
||||
}
|
||||
|
||||
public boolean onGenericMotionEvent(MotionEvent event) {return false;}
|
||||
|
||||
@@ -1443,4 +1445,14 @@ public class View extends Object {
|
||||
public boolean isPaddingRelative() {return false;}
|
||||
|
||||
public void setForeground(Drawable foreground) {}
|
||||
|
||||
public boolean canScrollVertically(int value) {return true;}
|
||||
|
||||
public boolean isInTouchMode() {return false;}
|
||||
|
||||
public void stopNestedScroll() {}
|
||||
|
||||
public long getDrawingTime() {
|
||||
return System.currentTimeMillis();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user