summaryrefslogtreecommitdiff
path: root/core/java/android/view/ActionProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Nullability annotations for view and widgetAlan Viverette2022-02-031-6/+8
| | | | | | | | | | I inferred nullability annotations in Jetpack based on the guaranteed behavior of the platform, so now I'm propagating those inferences back to the platform as annotations. Test: nullability presubmit checks Fixes: 206801689 Change-Id: I78a1997faeecdafc51d303b0fc766369938b9101
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-071-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I288969b0c22fa3a63bc2e71bb5009fe4a927e154
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | For packages: android.view.textservice android.view.textclassifier.logging android.view.textclassifier android.view.inputmethod android.view.autofill android.view.accessibility android.view This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I4147b038ed7adf0311ee9918b44766f82a057eaf
* Add missing @Deprecated annotations.Aurimas Liutikas2016-05-241-0/+1
| | | | | | | Add missing @Deprecated annotations for methods with @deprecated tag in javadoc. Change-Id: I35b78ccb97832d86b914c21a300444ba29e33844
* Fix memory leak in setActionProvider() - framework editionChris Banes2015-06-301-0/+8
| | | | | | | | Caused by ActionMenuItem's SubUiVisibilityListener not being nulled when it is replaced via setActionProvider(). BUG: 22189734 Change-Id: Id4deaa05cd5554ca7bdf969a592e4812e39dcb75
* Make MediaRouter UI more robust around route count changesAdam Powell2012-06-161-0/+40
| | | | | | | | | | | | | | | 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
* ActionProvider API updateAdam Powell2012-06-151-0/+26
| | | | | | | | | | | | | * 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
* More fun with MediaRouterAdam Powell2012-06-051-2/+25
| | | | | | | | | | Add action provider, button, and styles. Extend ActionProvider to allow for getting references to MenuItem instances. Implement toggle mode for the MediaRouteButton/ActionProvider. Dialog selection yet to come. Change-Id: Ibe3188570f503bbf8dd00cf154663435656a7171
* Add MediaRouter API.Adam Powell2012-06-011-17/+14
| | | | | | | | This is just the initial state tracking. Still to go is actually triggering Bluetooth A2DP correctly and tracking process state in the system server. Change-Id: I33031d52799d6e2d7208910da833831085cc3677
* Fix bug 5300621 - Share menu disappears in galleryAdam Powell2011-09-211-0/+28
| | | | | | | | | | | | | | | | | ActionProviders (or action views) unfortunately had no way to report that they had opened a sub-UI that would affect menu visibility listeners used to hide action bars when not in use. This caused the Gallery UI to hide its action bar when the share popup was open. Add hidden API (to be made public later) to ActionProvider that can be used to inform the menu system that a sub UI has opened or closed. Account for this in menu visibility callbacks. Fix ShareActionProvider to use this when its popup windows open and close. Fix a regression where submenus were not properly reporting visibility changes. Change-Id: Ia6f45fb463ad106105c40d01f141c2e5c8b96f78
* Polish of the ActivityChooserView and ShareActionProvider.Svetoslav Ganov2011-07-131-1/+3
| | | | | | | | | | | | | | 1. Addressed the UX comments: ActivityChooserView's default selection popup no longer shows a message, rather hightlights the default action which now it displays. Alignemnt of the UI. 2. The ShareActionProvider shows a sub-menu if the host item goes on the overflow menu. 3. Now the heade layout of the activity chooser view is not needed hence dropped and the item and footer ones are merged. Change-Id: I0b3de623e4c0a805be9ed73a8541e66b8c00e2d2
* Update ActionProvider to support dynamically building submenus.Adam Powell2011-07-121-4/+29
| | | | | | | Stub out ShareActionProvider for building a submenu of activities to choose from. Change-Id: Ibd9ada77a455ed1a296c87b6d967073ca0f676c2
* Adding a ShareView and ActionProvider for menus.Svetoslav Ganov2011-07-011-0/+114
1. Adding a widget for sharing contenet with other applications. The widget orders the share targets based on previous shares. It displays the share target list as either a popup anchored to itslef or as a dialog. 2. Added a ShareDataModel that will back widgets or other classes that are interested in share targets for a given intent ordered according to share history. This class is backing the ShareView 3. Added ActionProvider mechanism for the MenuItems. The action provider of a menu creates the action view as well as performs a default action if the menu item is on the overflow menu and is triggered but none of the menu callback has handled that. bug:4590827 Change-Id: Iaa4add2df2538b8c6c7edbeaf2880486d4fd75c5