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 more APIs needed for NewPipe
This commit is contained in:
@@ -115,6 +115,25 @@ public class PopupMenu {
|
||||
mOnDismissListener = listener;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inflate a menu resource into this PopupMenu. This is equivalent to
|
||||
* calling {@code popupMenu.getMenuInflater().inflate(menuRes, popupMenu.getMenu())}.
|
||||
*
|
||||
* @param menuRes Menu resource to inflate
|
||||
*/
|
||||
public void inflate(int menuRes) {
|
||||
System.out.println("PopupMenu.inflate(" + menuRes + ") called");
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the menu popup anchored to the view specified during construction.
|
||||
*
|
||||
* @see #dismiss()
|
||||
*/
|
||||
public void show() {
|
||||
System.out.println("PopupMenu.show() called");
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface responsible for receiving menu item click events if the items
|
||||
* themselves do not have individual item click listeners.
|
||||
|
||||
Reference in New Issue
Block a user