File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
core/java/com/android/internal/view/menu Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 2222import android .os .Parcelable ;
2323import android .util .SparseArray ;
2424import android .view .ContextThemeWrapper ;
25- import android .view .LayoutInflater ;
2625import android .view .MenuItem ;
2726import android .view .View ;
2827import android .view .ViewGroup ;
@@ -44,15 +43,14 @@ public class IconMenuPresenter extends BaseMenuPresenter {
4443 private static final String OPEN_SUBMENU_KEY = "android:menu:icon:submenu" ;
4544
4645 public IconMenuPresenter (Context context ) {
47- super (context , com .android .internal .R .layout .icon_menu_layout ,
46+ super (new ContextThemeWrapper (context , com .android .internal .R .style .Theme_IconMenu ),
47+ com .android .internal .R .layout .icon_menu_layout ,
4848 com .android .internal .R .layout .icon_menu_item_layout );
4949 }
5050
5151 @ Override
5252 public void initForMenu (Context context , MenuBuilder menu ) {
53- mContext = new ContextThemeWrapper (context , com .android .internal .R .style .Theme_IconMenu );
54- mInflater = LayoutInflater .from (mContext );
55- mMenu = menu ;
53+ super .initForMenu (context , menu );
5654 mMaxItems = -1 ;
5755 }
5856
You can’t perform that action at this time.
0 commit comments