add more API stubs for NewPipe

This commit is contained in:
Julian Winkler
2023-09-19 23:22:21 +02:00
parent 2013024971
commit c830abc5f3
34 changed files with 310 additions and 23 deletions

View File

@@ -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();
}
}