History log of /frameworks/base/core/java/android/widget/ActivityChooserView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5a1195fd5faf40428bc98e5bc24d09edbf3c3b6c 15-May-2012 fredc <fredc@broadcom.com> Fixed issue with ActivityChooserView not working if there is only 1 share option available

Change-Id: If21742f3ddc28f54bf8da6cbc7e81ee0df19d6f0
/frameworks/base/core/java/android/widget/ActivityChooserView.java
748ee2e82a6f7a3adbbb522d45001e6dcb52b947 24-May-2012 Svetoslav Ganov <svetoslavganov@google.com> ActivityChooser view not handling its removal and relayout properly.

1. ActivityChooserView did not hide the popup window when detached.

bug:6544220

2. ActivityChooserView was calling show popup when it was already
showing it resulting in an incrrect update and losing one item
per rotation.

bug:6522041

Change-Id: Iec1682ca5d27e38caf57214fa86060edf82a2166
/frameworks/base/core/java/android/widget/ActivityChooserView.java
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/ActivityChooserView.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/ActivityChooserView.java
37e800d6883436a477f013f2f329d1ed296ef3bb 24-Jan-2012 Adam Powell <adamp@google.com> Merge "Update ShareActionProvider to clear the sharing activity when the task is reset."
aa47a6b35a209812212fcd4ed7b600557ab66f0a 24-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> Removing unused imports and swiching off deprecated APIs

Change-Id: I08fd2c17bcad42f0216b140c0511f48a782c8018
/frameworks/base/core/java/android/widget/ActivityChooserView.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/ActivityChooserView.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/ActivityChooserView.java
1c07e22c364732779b33c72bdc0e18c4bda0f7ef 30-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> ActivityChooserView shows "see all" improperly.

1. The cooser was presenting the "Show all" option if the number
of available activities was more than the initial max count of activities
to be shown. Since the show all option is added to the drop down
the latter becomes effectively one longer than the initial max activity
count which may make the drop down taller than client expectats. Also
this leads to the case where if the activities are one more than the
initial activity count pressing the show all button will just replace
the show all item with the activity that did not fit - this is somehow
annoying to the user.

bug:5379282

Change-Id: I2693214cb0b66edb2a3bdffc01ed29139341111c
/frameworks/base/core/java/android/widget/ActivityChooserView.java
1ac6b1e221a76d7f09f47599449227e934d61d83 23-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "ActivityChooserView not showing "Show all" properly if the default target button not shown."
f632eaa9d64fb21892cc057ec7444ec157686734 23-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> ActivityChooserView not showing "Show all" properly if the default target button not shown.

If the default target button is hidden all activities are shown in the list from
which to choose. In this case due to off by one error the list was not showing the
option to expand it if the activities are one more than the initially shown.

bug:5358475

Change-Id: I8c3db37dab008637d78330f8de830cec92720264
/frameworks/base/core/java/android/widget/ActivityChooserView.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/ActivityChooserView.java
efab4e7f59835cb2ea9fdc42cc8fd9ea3771d261 20-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> ActivityChooserView not showing highest ranked target if default action not shown.

The view was not showing the highest ranked activity if the default action
button was not shown (happens if no history is present).

bug:5224159

Change-Id: I66536513e14496568ea2034467bd29ea4bc93cdb
/frameworks/base/core/java/android/widget/ActivityChooserView.java
f2e754002166b8126e6faf8c494da5835432d572 08-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Update the sharing UI according to latest UX specs.

bug:3362473

Change-Id: Ic302c289e28061f53446f98e5b97573d57d9cfb8
/frameworks/base/core/java/android/widget/ActivityChooserView.java
151763d3fc702ee2341aa6bebe821ce98d99e787 22-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding a callback to ShareActionProvider + make ActivityChooserView popup hide on action bar hide."
23f4cc0353615107cc9c19fda9cf96ddd43266e2 18-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5099037 - No delete option when multiple videos are selected

Fix some bugs related to how action item slots are allocated in menus.

Fix some padding/margins in ActivityChooserView.

Change-Id: I12096b0165daca902c5bc8e24c1e8d54a35e9557
/frameworks/base/core/java/android/widget/ActivityChooserView.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/ActivityChooserView.java
bfbbcf5677d4a5f8c8f938e4c8a8f86d3c7d74c2 26-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Updated the layout for the activity chooser view.

1. Updated the laoout to size the buttons properly.

Change-Id: I58f9beeca23af8b0471cf7f7ae9ca717223221aa
/frameworks/base/core/java/android/widget/ActivityChooserView.java
8dbace2dc970208e03c3cee02a7902a5bb9827ef 21-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Activity selections not always persisted by AcitivtyChooserView.

1. ActivityChooserModel was delegating the rsponsibility for reading
and persisting data to its clients i.e. ActivityChooserView and
the latter was persisting on detach from window. However, it is
not guaranteed that this callback will be received leading to
lack of presistence sometimes. Now the model is responsible for
loading and persisting thus voiding the posisbility a misbehaved
client to cause data loss.

bug:5061638

Change-Id: Ia2b7bb659f7b9abe8869c94b3eaa726ddd4e4fad
/frameworks/base/core/java/android/widget/ActivityChooserView.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/ActivityChooserView.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/ActivityChooserView.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/ActivityChooserView.java