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:
@@ -398,6 +398,12 @@ public class Activity extends ContextWrapper implements Window.Callback {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onMenuOpened(int featureId, Menu menu) {
|
||||
System.out.println("onMenuOpened(" + featureId + ", " + menu + ") called");
|
||||
return false;
|
||||
}
|
||||
|
||||
private native void nativeFinish(long native_window);
|
||||
public static native void nativeStartActivity(Activity activity);
|
||||
public static native void nativeOpenURI(String uri);
|
||||
|
||||
@@ -123,6 +123,12 @@ public class Dialog implements Window.Callback, DialogInterface {
|
||||
throw new UnsupportedOperationException("Unimplemented method 'onPanelClosed'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onMenuOpened(int featureId, Menu menu) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'onMenuOpened'");
|
||||
}
|
||||
|
||||
protected void onCreate (Bundle savedInstanceState) {
|
||||
System.out.println("- onCreate - Dialog!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user