Add some more methods needed by NewPipe. Mostly stubs

This commit is contained in:
Julian Winkler
2024-02-17 15:15:05 +01:00
parent 72d6ad9914
commit 5dfadc9c59
17 changed files with 91 additions and 13 deletions

View File

@@ -59,4 +59,8 @@ public final class Display {
public void getSize(Point size) {
size.set(getWidth(), getHeight());
}
public void getRealSize(Point size) {
getSize(size);
}
}

View File

@@ -1497,6 +1497,10 @@ public class View extends Object {
post(action);
}
public void postOnAnimationDelayed(Runnable action, long delayMillis) {
postDelayed(action, delayMillis);
}
public void setHorizontalScrollBarEnabled(boolean enabled) {}
public void postInvalidateOnAnimation() {
@@ -1613,4 +1617,10 @@ public class View extends Object {
public int getMeasuredWidthAndState() {
return measuredWidth;
}
public void forceLayout() {
requestLayout();
}
public void removeOnAttachStateChangeListener(OnAttachStateChangeListener listener) {}
}

View File

@@ -18,6 +18,8 @@ public class Window {
public boolean onMenuItemSelected(int featureId, MenuItem item);
public void onPanelClosed(int featureId, Menu menu);
public boolean onMenuOpened(int featureId, Menu menu);
}
// FIXME private

View File

@@ -1,9 +1,12 @@
package android.view.inputmethod;
import android.os.IBinder;
import android.view.View;
public class InputMethodManager {
public boolean hideSoftInputFromWindow(IBinder windowToken, int flags) {return false;}
public boolean showSoftInput(View view, int flags) {return false;}
}