28a8468995c71ba3fbba12557d143e7599db38d8 |
|
04-Jan-2016 |
Alan Viverette <alanv@google.com> |
Avoid NPE when ActionMenuPresenter is intialized with null MenuBuilder Also adds annotations to accurately reflect nullability. Bug: 26318920 Change-Id: Ia3b170dd301edfc0088a11ee5764c24bab2f10aa
/frameworks/base/core/java/com/android/internal/view/menu/MenuPresenter.java
|
00aa5103e2f71ad3f29f53168e37ef7da8ca03f2 |
|
03-Nov-2015 |
Alan Viverette <alanv@google.com> |
Reduce CascadingMenuPopup's reliance on internal ListView state Bundles cascading menu information and stores it in a stack representing the hierarchy of added menus. Bug: 23970448 Change-Id: I1621d9eb30ff173767b6ebad2a1977127c42d0ad
/frameworks/base/core/java/com/android/internal/view/menu/MenuPresenter.java
|
2ac975deb3d5833ad3daf7f4325f062d875b6036 |
|
08-Oct-2015 |
Alan Viverette <alanv@google.com> |
Revert "Reduce CascadingMenuPopup's reliance on internal ListView state" Introduced some regressions. Reverting until we can do better testing. This reverts commit 8375d639986529969ea5e118de548d29db16ec97. Change-Id: I9b15d63e52c814ef8985b86f8a50359e39355d39
/frameworks/base/core/java/com/android/internal/view/menu/MenuPresenter.java
|
8375d639986529969ea5e118de548d29db16ec97 |
|
06-Oct-2015 |
Alan Viverette <alanv@google.com> |
Reduce CascadingMenuPopup's reliance on internal ListView state Bundles cascading menu information and stores it in a stack representing the hierarchy of added menus. Bug: 23970448 Change-Id: Icc0a96ea2dd4320fd4dae9626435ed82a6165480
/frameworks/base/core/java/com/android/internal/view/menu/MenuPresenter.java
|
3d0f21dab8d891b9aebdd5277348d549eeb843e6 |
|
11-Jul-2014 |
Alan Viverette <alanv@google.com> |
API for inflating action bar menus against a different theme BUG: 16162344 Change-Id: I5bf9f133de56a1830028bca6326cc2c50888a052
/frameworks/base/core/java/com/android/internal/view/menu/MenuPresenter.java
|
11ed1d6cae9214335c92ac38498a4e6c7d1c8324 |
|
12-Jul-2011 |
Adam Powell <adamp@google.com> |
Fix bugs around restoring submenu state after activity teardown/restore Change-Id: I6cb5b3cad39b141dff84b8e0ca62f8f0a76a03b1
/frameworks/base/core/java/com/android/internal/view/menu/MenuPresenter.java
|
8d02deabac62c4a68a335a7b3141795466362b89 |
|
01-Jun-2011 |
Adam Powell <adamp@google.com> |
Implement bug 4500971 - Collapsable action views Action views may now be flagged as 'collapsable'. This means that the action menu will always show them in the collapsed state by default. When selected, the action view will "take over" the navigation/view side of an action bar until dismissed via the home/up button. This feature allows for more long-term exclusive modes akin to ActionModes but less intrusive. The action menu itself remains unaffected. Collapsable action views are ideal for things such as search or categories of tool palettes. Change-Id: Ibafce5631befbfe67c5d834c2e2617d3d7f6da7a
/frameworks/base/core/java/com/android/internal/view/menu/MenuPresenter.java
|
696cba573e651b0e4f18a4718627c8ccecb3bda0 |
|
29-Mar-2011 |
Adam Powell <adamp@google.com> |
Refactor menu internals. In the old world, MenuBuilder and MenuItemImpl were responsible for generating views for any presentation of a menu. MenuBuilder needed to know any types and resources involved, and the implied caching semantics did not work well for menus presented within AdapterViews. In the new world, the MenuPresenter interface takes over the responsibility of generating views or adapters for menu items. MenuBuilder/MenuItemImpl still provide extra metadata tracking used by these presenters. Mutiple presenters may be active for a single menu at a time. All of this remains internal framework implementation details. BaseMenuPresenter provides a simple base for presenters that treats the host MenuView more like an AdapterView. This allows for less rebuilding of views when items are added/removed. Callbacks have been restructured. Calls that relate to the menu itself are still handled by MenuBuilder.Callback, but calls related to a specific presentation of a menu are handled by MenuPresenter.Callback objects attached to a MenuPresenter. Also add API to programmatically set divider options for LinearLayout and hidden API so that ActionBarView can have finer-grained control over divider placement. Change-Id: I2265b86a084279822908021aec20dfbadc1bb56b
/frameworks/base/core/java/com/android/internal/view/menu/MenuPresenter.java
|