History log of /frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
09231da6d922e91d30d06876521106f13230a791 27-Oct-2016 Peeyush Agarwal <apeeyush@google.com> Add MenuItem shortcut modifiers to support library

Before this, CTRL was the default modifier for MenuItem shortcuts.
Now, It's possible to specify the modifier in XML or via MenuItem
methods. The modifier list includes META, CTRL, ALT, SHIFT, SYM and
FUNCTION.

KeyEvents with non-default modifiers are rerouted to
dispatchKeyShortcutEvent by extending Activity's onKeyDown. Modifier
state is maintained in support menu.

Bug: 32165848
Test: android.support.v7.app.AppCompatMenuItemShortcutsTest,
android.support.v7.view.SupportMenuInflaterTest
Change-Id: I5f9b89664683da7261b2292fbfc21acc6e3ccdb9
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java
e2104f4b5c8e3ad63570306a25e61502dfe4c418 05-Mar-2017 Aurimas Liutikas <aurimas@google.com> Add all missing @Override annotations.

Historically, we could not add @Override for certain methods due to
using older SDKs to build support library. That is no longer the case
so we can add @Override everywhere now.

Test: ./gradlew assemble assembleAndroidTest still works
Change-Id: I85e3c1157f0e253e3eab7584189f3bf95cf030e9
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java
458543f38db49fdcb1764f007ded33820964c3fe 14-Feb-2017 Aurimas Liutikas <aurimas@google.com> Clean up MenuItemCompat after minSdk 14 bump.

- Deprecates all the methods introduced in API 14 or earlier.
- Removes usage of such methods within support library.
- Inlines Api26 related call directly in MenuItemCompat.

Bug: 32794064
Test: ./gradlew assemble
Change-Id: I5f26608e417377a67f4051c3f7c3067eab4012f6
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java
8e10080c914d1ad0784394fa3026b85535535847 18-Nov-2016 Aurimas Liutikas <aurimas@google.com> Move from GROUP_ID to LIBRARY_GROUP annotations

- GROUP_ID was deprecated in favor of LIBRARY_GROUP.
- Fix import order in touched files.

Test: ./gradlew assemble assembleAndroidTest
Change-Id: I2a774e93215090f42262fb86cf8e841f2a546a4f
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java
69557a3a037e4124ecbc98560e84fa89472b3bf4 07-Nov-2016 Aurimas Liutikas <aurimas@google.com> Fix BottomNavigationMenu item selection via Menu object

- Move the logic of handling which item is checked to MenuBuilder instead of
BottomNavigationMenu itself by making all the MenuItems exclusively checked.
- Fixes MenuBuilder#startDispatchingItemsChanged to call onItemsChanged
with a correct value of structureChanged. It now keeps track if structure
changes while dispatching is prevented.
- Added a button to focus the next bottom navigation item to
BottomNavigationViewUsage

Bug: 32336752
Test: Added a new test to BottomNavigationViewTest

Change-Id: Ief3ff356b501373aaabdd5f4990ecf6f9c506f05
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java
c39d9c75590eca86a5e7e32a8824ba04a0d42e9b 25-Aug-2016 Alan Viverette <alanv@google.com> Add @RestrictTo(GROUP_ID) annotations to match @hide docs annotations

Also removes some unnecessary @hide annotations on classes that wouldn't
have shown up in docs anyway due to package/private visibility or NO_DOCS.

Bug: 27937193
Change-Id: Iab127a5a3ce57a2d61965d3cef782621eb3859f5
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java
c9b31694a631e135b85b2cf36a8e455e196a68e2 27-Jul-2016 Chris Banes <chrisbanes@google.com> Fix list menu not closing when sub menu opened

In the backport of N's new cascading menu, a close()
call was removed to enable it. This breaks sub menus
when there is more than one presenter, such as a list
menu.

Fixed by calling close() when we're using cascading
menus.

BUG: 30360959
Change-Id: If814d76b58ec1d4e46dcc1f15926a729c383331e
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java
d6e47228c44aaadb0d4518da6db5c3f5dffda1ab 21-Apr-2016 Chris Banes <chrisbanes@google.com> Backport framework changes to AppCompat

Changes includes:

- Menu popup updates
- SwitchCompat tinting APIs
- Various bug fixes from the framework

BUG: 28262702

Change-Id: Id263334df8f921b6379366f4b383d35468dcde41
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java
6142a54baae3289f734947c6b5375b12eb0fb722 27-Jan-2016 Chris Banes <chrisbanes@google.com> Backport framework popup improvements to AppCompat

Lots of changes here, including cascading menus on
large screens, titles on popups and other popupy things.

BUG: 26816906

Change-Id: I79f4692d30fea247f419102a455c50e8b9a665f3
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java
002d5bbb223ba6742d1c20a9a87064fbe62cd78f 25-Jan-2016 Anatoly Korniltsev <korniltsev.anatoly@gmail.com> Fix crash on Explay Fresh 4.2.2 devices, caused by bug in the ROM

This change is to workaround bug in the ROM of Explay Fresh devices
with 4.2.2 ROM. Manufacturer has modified ROM and added a public method
setOptionalIconsVisible to android.view.Menu interface. Because of that
the runtime can't load MenuBuilder class because it had no such public
method (it was package local)

Change-Id: Iefa42d75a97ae7ff193336d6037533ee6c5d6a2f
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java
66698bb15ba0f873aa1c2290cc50d6bb839a474a 26-Oct-2015 Chris Banes <chrisbanes@google.com> Flatten AppCompat class hierarchy

This allows us to do two things:

1) Move away from using public @hidden classes
everywhere.
2) Workaround silly OEM bugs.

BUG: 18218511

Change-Id: I7582e242c7564c32feeb044fc9eff6bfb5c56536
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/MenuBuilder.java