summaryrefslogtreecommitdiff
path: root/core/java/android/widget/ShareActionProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* docs: fixed five typoskopriva2018-09-171-1/+1
| | | | | | | | | | | | | Test: make ds-docs Bug: 37095452 Bug: 37001217 Bug: 37004068 Bug: 37015340 Bug: 37044652 Change-Id: Ib305df88b63286810d7722e73321ddb238b45e8e Exempt-From-Owner-Approval: Docs-only change
* Fix issue #16400873: Apps that show ads as new tasks stay in recents...Dianne Hackborn2014-07-201-4/+2
| | | | | | | | | | ...even when I hit back or close the activity in UI Change the semantics of NEW_DOCUMENT to have the recents entry be removed by default when its activity is finished, with various ways to explicitly turn off this behavior. Change-Id: Idc717706d27de80f28b53ad76f9e375d85118d71
* Launch document sharing into unique activitiesCraig Mautner2014-06-041-0/+2
| | | | | | | | | | If the same item is shared twice (or more) a new activity for sharing will be launched each time. Previously the first sharing activity would be reused. Fixes bug 14903271. Change-Id: Ib9e618f3d42079836529e86c138a6c999350cac5
* Make ChooserActivity intents doccentric and transitoryCraig Mautner2014-05-081-3/+12
| | | | | | | | | | | | | | Activities launched from the chooser activity will now appear in their own tasks which will be automatically removed from recents when they are finished. Also qualified application of new flags with null check and Action check. Must be either ACTION_SEND or ACTION_SEND_MULTIPLE. Fixes bug 14463859. Fixes bug 14633773. Change-Id: I8832462163958f6a43bc4c6a020f78948ce70ac3
* Use new doccentric flags and attributes in SharingCraig Mautner2014-05-071-3/+6
| | | | | | | | | | Put the new doccentric flags and attributes into use. And make their first application the Share widget. Sharing now creates a new task which is destroyed once the share action has completed. Fixes bug 14463859. Change-Id: I34c4c79775ef44d65e1967be5601997a2d46b210
* Action bar rendering in layoutlibDeepanshu Gupta2014-04-101-2/+4
| | | | | | | | | | This also makes a couple of changes to the framework: 1. ShareActionProvider - Use edit mode to execute activity chooser code. 2. WindowDecorActionBar - add a new constructor for use by layoutlib. This also relies on some changes to the plugin to pass the correct params. Change-Id: Ia30fef816afd91ec1e439734d56b59b1323bfee2
* Add APIs for obtaining themed Drawable from Theme, ContextAlan Viverette2014-02-031-1/+1
| | | | | BUG: 12611005 Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
* Doc updates: Javadoc fixesKatie McCormick2013-11-261-1/+1
| | | | Change-Id: I82381056f9f13e53ab8a0525f5a53bf98674c052
* Doc update: unterminated code tagskmccormick2013-04-031-38/+26
| | | | | | "Bug: 7250069" Change-Id: I4c3eca8eacad6d0aced9f38788726ba95b914d5d
* Revert "Showing default activity in activity chooser view only if enough space."Svetoslav Ganov2012-05-151-2/+1
| | | | | | This reverts commit 340e2611de6d54516e222597585dbe7968a9915d Change-Id: I396b70e8c737e6f1c36429618889e5c8fc690b55
* Updating the documentation of share action provider.Svetoslav Ganov2012-05-071-5/+18
| | | | | | | | 1. Added some clarification how a developer can use the same provide with different historical files in a context dependent manner. Change-Id: I2a3390ade7e4b8b1170d381668e1439e52c17b7e
* Showing default activity in activity chooser view only if enough space.Svetoslav Ganov2012-05-051-1/+6
| | | | | | | | | | | | | | | | | | | | | | 1. While a default target is very convenient, having two targets for the widget on a phone takes too much space and the apps do not have room to add other essential affordances to the action bar. Making the default activity show only of the screen is large enough - the action bar accommodates at least four targets i.e. 500dip. 2. Fixed a bug where changing the backing model of an ActivityChooserView when the view is not shown did not remove the observer for the old model, hence the View can get into a state where it responds to changes of two models while presenting only one. Also in such a case the view would leak since the singleton model will keep a handle to it. 3. Updated the documentation of share action provider to explain how a a developer can change the backing history file and refresh the UI based on the historical data in that file. bug:6447692 Change-Id: Id5c9e54cd5df322ded8574ba028cb680e628243b
* Ignore the result of the on share callback in ShareActionProvider.Svetoslav Ganov2012-04-131-4/+10
| | | | | | | | 1. The reason for having this callback on the ShareActionProvider is to notify the client that a share happened so he can update the UI. Change-Id: I65e8a8db8d4add0cd23d53be0286b14b4b4640b4
* Update ShareActionProvider to clear the sharing activity when the taskAdam Powell2012-01-241-0/+1
| | | | | | | | | is reset. As per platform guidelines, when launching a sharing activity the Intent flag FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET should be used. Change-Id: I30bd3d20eb75aee7943b681dc2d9c7f44a04e919
* Adding accessibility support to the share UI.Svetoslav Ganov2011-10-031-0/+6
| | | | | | | | | | Added content description to the overflow button and default action target as well as content description for the popup list with share targets. bug:5398787 Change-Id: Iea1e9d85893899f7d161986cb958595083c79b93
* Fix bug 5300621 - Share menu disappears in galleryAdam Powell2011-09-211-0/+1
| | | | | | | | | | | | | | | | | 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
* Adding a callback to ShareActionProvider + make ActivityChooserView popup ↵Svetoslav Ganov2011-08-041-1/+74
| | | | | | | | | | | | | | | hide on action bar hide. 1. Added a callback to ShareActionProvider allowing clients to be notified when an activity is chosed given them a change to say update their UI and also decide whether to handle the activity launch themselves. 2. The popup of the ActivityChooserView was not hiding on hiding the action bar. bug:5094963 bug:5095004 Change-Id: I6c8e8cc1f22d07e707e2218eb108f9101417b23b
* Update the style of the action bar share UISvetoslav Ganov2011-07-171-8/+11
| | | | | | | | | | | | | | 1. Made the background of the default and expand buttons change when pressed. 2. When the share UI is shown on the overflow the "Show all" menu item was present event if all items are shown. 3. The width of the popup for picking an item was different for the action view and overflow case. bug:5039747 Change-Id: I72afbcf86c93596c7eba4d70c002eab060ff31f8
* Polish of the ActivityChooserView and ShareActionProvider.Svetoslav Ganov2011-07-131-15/+86
| | | | | | | | | | | | | | 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-12/+10
| | | | | | | 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/+164
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