diff options
author | Adam Powell <adamp@google.com> | 2012-06-15 19:21:34 -0700 |
---|---|---|
committer | Adam Powell <adamp@google.com> | 2012-06-15 20:19:29 -0700 |
commit | 130b4572d1f3df702e5b296a655d15a41f6d4c66 (patch) | |
tree | dcbeec24c1138901ac4925446d20b810887267e2 /api | |
parent | d8bbf96a84cba7c31fa1535fe2467520f2aa0198 (diff) | |
download | frameworks_base-130b4572d1f3df702e5b296a655d15a41f6d4c66.zip frameworks_base-130b4572d1f3df702e5b296a655d15a41f6d4c66.tar.gz frameworks_base-130b4572d1f3df702e5b296a655d15a41f6d4c66.tar.bz2 |
ActionProvider API update
* Add ActionProvider#overridesItemVisibility and isVisible.
These methods allow an ActionProvider to override the
visibility of a MenuItem that it is bound to. If a MenuItem
has been explicitly hidden by the application, it will not
be visible.
* Change MediaRouteActionProvider to not require a MediaRouter
callback, to avoid extra lifecycle management headaches.
Change-Id: I606fa98b3a6a3e60a953dd024274f9bf9c67acdd
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 387bb65..12f032e 100644 --- a/api/current.txt +++ b/api/current.txt @@ -22814,10 +22814,12 @@ package android.view { public abstract class ActionProvider { ctor public ActionProvider(android.content.Context); method public boolean hasSubMenu(); + method public boolean isVisible(); method public abstract deprecated android.view.View onCreateActionView(); method public android.view.View onCreateActionView(android.view.MenuItem); method public boolean onPerformDefaultAction(); method public void onPrepareSubMenu(android.view.SubMenu); + method public boolean overridesItemVisibility(); } public final class Choreographer { |