History log of /frameworks/base/core/java/android/widget/ShareActionProvider.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b9f286e1a31bfc13e9c0e9635294742d558014c6 15-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Revert "Showing default activity in activity chooser view only if enough space."

This reverts commit 340e2611de6d54516e222597585dbe7968a9915d

Change-Id: I396b70e8c737e6f1c36429618889e5c8fc690b55
/frameworks/base/core/java/android/widget/ShareActionProvider.java
775bcac6bcdd04b6bffd23b5de0da4588a749337 07-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Updating the documentation of share action provider.

1. Added some clarification how a developer can use the
same provide with different historical files in a
context dependent manner.

Change-Id: I2a3390ade7e4b8b1170d381668e1439e52c17b7e
/frameworks/base/core/java/android/widget/ShareActionProvider.java
340e2611de6d54516e222597585dbe7968a9915d 06-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Showing default activity in activity chooser view only if enough space.

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
/frameworks/base/core/java/android/widget/ShareActionProvider.java
b33eacdb791e569ebb429b55d7ab098973e19764 13-Apr-2012 Svetoslav Ganov <svetoslavganov@google.com> Ignore the result of the on share callback in ShareActionProvider.

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
/frameworks/base/core/java/android/widget/ShareActionProvider.java
314419ccb9daa215c5148f59e5b60c696ef51385 24-Jan-2012 Adam Powell <adamp@google.com> Update ShareActionProvider to clear the sharing activity when the task
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
/frameworks/base/core/java/android/widget/ShareActionProvider.java
70853772bd119339244a4fc8e020ad78495228be 01-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding accessibility support to the share UI.

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
/frameworks/base/core/java/android/widget/ShareActionProvider.java
823f074a73cfc23c40a7b576c71daa096ee9ed6a 22-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5300621 - Share menu disappears in gallery

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
/frameworks/base/core/java/android/widget/ShareActionProvider.java
8c6c79f0909ceabeb8abe1013648c31c7582b7ad 30-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding a callback to ShareActionProvider + make ActivityChooserView popup 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
/frameworks/base/core/java/android/widget/ShareActionProvider.java
414051b8b1e31b69ca622d68f391245f1989500b 18-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Update the style of the action bar share UI

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
/frameworks/base/core/java/android/widget/ShareActionProvider.java
76559a65ad9d644f10beacf8895ceb217fdd0aeb 07-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Polish of the ActivityChooserView and ShareActionProvider.

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
/frameworks/base/core/java/android/widget/ShareActionProvider.java
961dd11895ce72e59bca124ef5bea4e4c1183099 12-Jul-2011 Adam Powell <adamp@google.com> Update ActionProvider to support dynamically building submenus.

Stub out ShareActionProvider for building a submenu of activities to
choose from.

Change-Id: Ibd9ada77a455ed1a296c87b6d967073ca0f676c2
/frameworks/base/core/java/android/widget/ShareActionProvider.java
51ac0e94a83cfccb5105aa14df1077729a5b4ccc 17-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding a ShareView and ActionProvider for menus.

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
/frameworks/base/core/java/android/widget/ShareActionProvider.java