OSDN Git Service

Add PopupMenu#setForceShowIcon
authorMihai Popa <popam@google.com>
Tue, 5 Feb 2019 16:02:21 +0000 (16:02 +0000)
committerMihai Popa <popam@google.com>
Tue, 5 Feb 2019 17:20:21 +0000 (17:20 +0000)
commitda59e1da1613df5e892ba60097feb692e1dd5fbb
treec7e6c782f4b9ef0c3a277c4bb81efe71e0a4f358
parent00075f9245ab38ab011c03f371951cffe827269b
Add PopupMenu#setForceShowIcon

The API enables developers to display icons for menu items. Before this,
the common workaround was to reflect in MenuPopupHelper (non-public
class), and call setForceShowIcon there.

Bug: 123769396
Test: atest android.widget.cts.PopupMenuTest
Change-Id: If4ef46bc7786a2e7e756a9b15c81147e0cce1090
api/current.txt
core/java/android/widget/PopupMenu.java
core/java/com/android/internal/view/menu/MenuPopupHelper.java