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 more methods needed by NewPipe. Mostly stubs
This commit is contained in:
@@ -59,4 +59,8 @@ public final class Display {
|
||||
public void getSize(Point size) {
|
||||
size.set(getWidth(), getHeight());
|
||||
}
|
||||
|
||||
public void getRealSize(Point size) {
|
||||
getSize(size);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user