use of com.android.internal.view.menu.MenuView in project android_frameworks_base by crdroidandroid.
the class ActionMenuPresenter method getMenuView.
@Override
public MenuView getMenuView(ViewGroup root) {
MenuView oldMenuView = mMenuView;
MenuView result = super.getMenuView(root);
if (oldMenuView != result) {
((ActionMenuView) result).setPresenter(this);
if (oldMenuView != null) {
((View) oldMenuView).removeOnAttachStateChangeListener(mAttachStateChangeListener);
}
((View) result).addOnAttachStateChangeListener(mAttachStateChangeListener);
}
return result;
}
Aggregations