summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2012-06-16 14:25:38 -0700
committerAdam Powell <adamp@google.com>2012-06-16 14:49:13 -0700
commit39d5c6172503620ac3761148adac5fd7fa20d02d (patch)
tree8720e26aeab2ae36577309dd912be3f0933c6f14 /api
parentc4637d3efbbeb3e204691da96c357b5fea4ae2f1 (diff)
downloadframeworks_base-39d5c6172503620ac3761148adac5fd7fa20d02d.zip
frameworks_base-39d5c6172503620ac3761148adac5fd7fa20d02d.tar.gz
frameworks_base-39d5c6172503620ac3761148adac5fd7fa20d02d.tar.bz2
Make MediaRouter UI more robust around route count changes
Improve the API around ActionProvider visibility overriding. Allow the application to notify whatever is hosting the ActionProvider that visibility has changed in a way that is friendly to alternate support library-style reimplementations of MenuItem. Allow MediaRouter.Callback implementations to add or remove themselves or other Callbacks during dispatch of callback events. Make MediaRouteActionProvider track the visibility of corresponding menu items more accurately. Change-Id: Ic7ddb6a87c3637904750d2661e4a9fa323b09ea0
Diffstat (limited to 'api')
-rw-r--r--api/current.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index 0f1d68e..99c16ec 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -22822,6 +22822,12 @@ package android.view {
method public boolean onPerformDefaultAction();
method public void onPrepareSubMenu(android.view.SubMenu);
method public boolean overridesItemVisibility();
+ method public void refreshVisibility();
+ method public void setVisibilityListener(android.view.ActionProvider.VisibilityListener);
+ }
+
+ public static abstract interface ActionProvider.VisibilityListener {
+ method public abstract void onActionProviderVisibilityChanged(boolean);
}
public final class Choreographer {