add more APIs needed for NewPipe

This commit is contained in:
Julian Winkler
2024-03-16 12:49:28 +01:00
parent b3c0023a45
commit 276b5ca7ef
40 changed files with 768 additions and 50 deletions

View File

@@ -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.