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 bunch of new java APIs: mostly stubs or copied from AOSP
Many of these classes are only needed to be subclassed by androidx support library, which is used in many android apps
This commit is contained in:
@@ -1,8 +1,22 @@
|
||||
package android.view;
|
||||
|
||||
public class Window {
|
||||
public static interface Callback {}
|
||||
public static class fixme_callback implements Callback {}
|
||||
public static interface Callback {
|
||||
public void onContentChanged();
|
||||
|
||||
public abstract boolean onCreatePanelMenu(int featureId, Menu menu);
|
||||
}
|
||||
public static class fixme_callback implements Callback {
|
||||
|
||||
@Override
|
||||
public void onContentChanged() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreatePanelMenu(int featureId, Menu menu) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME private
|
||||
public long native_window;
|
||||
@@ -43,4 +57,12 @@ public class Window {
|
||||
public boolean requestFeature(int featureId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public View findViewById(int id) {
|
||||
return View.view_by_id.get(id);
|
||||
}
|
||||
|
||||
public View peekDecorView() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user