f9e2c1b326f64cd3805c2ce80a0f13b20a671556 |
|
27-Jul-2016 |
Chris Banes <chrisbanes@google.com> |
Fix CascadingMenuPopup width if background has padding DO NOT MERGE Happens because CascadingMenuPopup calls setWidth() rather than setContentWidth() like StandardMenuPopup does. BUG: 30365568 Change-Id: Id850baaf1d9c5664220766e5e37869e2ec361a2d
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
24b260de62c63dd10a22837b15a029db25957b8b |
|
19-May-2016 |
Keisuke Kuroyanagi <ksk@google.com> |
Set input method mode for CascadingMenuPopup. Set INPUT_METHOD_NOT_NEEDED not to steal input focus. Bug: 28638654 Change-Id: Ic5070b309de459914d2670bd20a9af568438a843
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
0967da398901dd2ac626152a4802c822ca36c63b |
|
27-Apr-2016 |
Oren Blasberg <orenb@google.com> |
Merge "Don't show icons for top level menus unless forced." into nyc-dev
|
7b457455c40a6f159d9d82b2fe2e03bc26e9c55e |
|
20-Apr-2016 |
Oren Blasberg <orenb@google.com> |
Don't show icons for top level menus unless forced. Prior to this CL, the cascading implementation would evaluate the contents of the menu to determine whether to show an icon for this case. However, the policy we have upheld is that top level menus should never show an icon for this case. (Unless setForceShowIcon(true) was called.) Bug: 28275346 Change-Id: I09423596d49742aa7a9ba7245702c099581c0b48
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
d7b2599285cf0affd6013a58497ff5fabdf41125 |
|
19-Apr-2016 |
Alan Viverette <alanv@google.com> |
Don't overwrite vertical and horizontal offsets unless explicit Bug: 28194522 Change-Id: I14c8b719a0fca03da6d9834d07948a5513241b26
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
3610d06239e72bb51e4150889864d2b2c18347d5 |
|
14-Apr-2016 |
Oren Blasberg <orenb@google.com> |
Don't show icons in overlay popup menus. This was a "regression" in CascadingMenuPopup specifically. We now check for the overflow case and don't show icons. This preserves the behavior from Marshmallow. Bug: 28026351 Change-Id: Ifbc9a20b0dadd19ef7b727023b1b0cfa45ebf993
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
ddf6b8130f62c82241544bef19bcee4ef3171a82 |
|
06-Apr-2016 |
Oren Blasberg <orenb@google.com> |
Fix icon spacing on both MenuPopup implementations. Ensure we calculate based on the actual menu items in a particular menu or submenu, not based on whether the parent menu had icon spacing enabled. Bug: 28026351 Change-Id: Ie6e56eb142f0b82de38bf39ee848ddd26df2bf1c
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
64b715736847ca53864e86b78e94b685ada0e5c8 |
|
28-Jan-2016 |
Alan Viverette <alanv@google.com> |
Don't move non-modal popups in response to global layout Bug: 26799074 Change-Id: Id363342f65b89c624f672ec0276408003e41008f
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
91098574f90277128415e9593cce1e495cc51465 |
|
19-Jan-2016 |
Alan Viverette <alanv@google.com> |
Animate context popup menu around origin point Also enables the context popup menu enter transition. Bug: 25801140 Change-Id: Id7fb384e8ac8974189b32a052352bd2f6cbb176e
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
db08925a8fc1fb336b04aaae9da25ffd2fb5fbb7 |
|
15-Dec-2015 |
Alan Viverette <alanv@google.com> |
Fix build Change-Id: I3e1708a9e41155b9b00e0365e4392ae66202fdbb
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
ecfdaa9157cbc2e108a4b2530f9a3ff8a7469f8b |
|
15-Dec-2015 |
Alan Viverette <alanv@google.com> |
Postpone CascadingMenuPopup window creation until show() This ensures that addMenu() and setters can be called in any order as long as they occur before the show() call. Bug: 25853211 Change-Id: I9a643d37c60046326b7d97a38026c27ba247a1b0
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.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/CascadingMenuPopup.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/CascadingMenuPopup.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/CascadingMenuPopup.java
|
ed3912692f0ba8a647d795462e20fcdb67adbacb |
|
01-Sep-2015 |
Oren Blasberg <orenb@google.com> |
Make context menus show as popup menus. This means that right-clicking/long pressing on a view that is registered for context menu will show the context menu as a popup menu instead. Bug: 20016398 Change-Id: I96fea60435fff2f981d288521f490f8ff24ada15
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
734320d06be5ad6365e6997b4ddbcbdb2778809c |
|
21-Sep-2015 |
Oren Blasberg <orenb@google.com> |
Cascading submenus: Fix a few small issues. 1. Open submenus now disappear instantly rather than fading out when mouse hovers over a non-submenu item. 2. When a submenu is opened on hover, the item that was hovered now will remain selected instead of being deselected. 3. Fix an issue where if the same chain of submenus was opened more than once, the submenus could open in a different direction each time. To fix, we keep track of the direction of opening along the way and make sure to reset the preferred direction when a submenu is closed. Bug: 20127825 Change-Id: I99972cce4ddabe316c5148f1dd79a5d7b3e64b87
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
23087be7792c2d22173cf022a72d0648aa430ab5 |
|
08-Sep-2015 |
Oren Blasberg <orenb@google.com> |
Cascading popup menus: open submenu on mouse hover. When the cascading feature is enabled, users can mouseover a submenu item in a popup menu to expand and open the new submenu (after a short timeout). Similarly, if a user mouseovers a different menu item in the original menu, the submenu gets closed (again, after a short timeout). This should complete the implementation of cascading submenu functionality. Also fix two other issues: (1) Update some oudated code in PopupMenu that was still opening the submenu when a user clicks on a submenu item; this responsibility now lives within the MenuPopupHelper's delegate MenuPopup class, so it doesn't need to live in PopupMenu anymore. (2) Fix an issue where icons would be force-set on a submenu when they should not be. Instead, decide whether to show icons in a submenu based on whether to show them in the top level menu, as intended. Bug: 20127825 Change-Id: Ia46852c7f99436065ab4bc234de94dffc0019666
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
9916282bac8ac8fab7ce5b649c049842acffa29b |
|
10-Sep-2015 |
Oren Blasberg <orenb@google.com> |
Fix broken popup menu in Shelf (andromeda). This addresses a few oversights from an earlier CL: 1. In MenuPopupHelper#show() make sure to create a new MenuPopup in case the earlier one was dismissed. 2. Ensure the on-dismiss listener gets called even if the MenuPopupHelper's MenuPopup was previously closed and if a new one is opened. 3. Handle global layout changes properly by having the MenuPopup re-drawing/positioning itself. Bug: 23973158 Change-Id: Iee866079770026f0fe17814892abc9825f9760a2
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|
8e12f8df076d38853e0fedde7ed79e2e8689d59e |
|
02-Sep-2015 |
Oren Blasberg <orenb@google.com> |
Add Cascading submenus implementation. This change adds a new Cascading implementation of MenuPopup. When enabled, submenus will show up in a cascading side by side fashion when opened next to popup menus. Bug: 20127825 Change-Id: Ie3c797fb5dbada7521cd93dc4171950af2be2ff7
/frameworks/base/core/java/com/android/internal/view/menu/CascadingMenuPopup.java
|