Rabbit-R1/original r1/java/sources/androidx/appcompat/view/menu/SubMenuWrapperICS.java
2024-05-21 17:08:36 -04:00

72 lines
2 KiB
Java

package androidx.appcompat.view.menu;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import androidx.core.internal.view.SupportSubMenu;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public class SubMenuWrapperICS extends MenuWrapperICS implements SubMenu {
private final SupportSubMenu mSubMenu;
/* JADX INFO: Access modifiers changed from: package-private */
public SubMenuWrapperICS(Context context, SupportSubMenu supportSubMenu) {
super(context, supportSubMenu);
this.mSubMenu = supportSubMenu;
}
@Override // android.view.SubMenu
public SubMenu setHeaderTitle(int i) {
this.mSubMenu.setHeaderTitle(i);
return this;
}
@Override // android.view.SubMenu
public SubMenu setHeaderTitle(CharSequence charSequence) {
this.mSubMenu.setHeaderTitle(charSequence);
return this;
}
@Override // android.view.SubMenu
public SubMenu setHeaderIcon(int i) {
this.mSubMenu.setHeaderIcon(i);
return this;
}
@Override // android.view.SubMenu
public SubMenu setHeaderIcon(Drawable drawable) {
this.mSubMenu.setHeaderIcon(drawable);
return this;
}
@Override // android.view.SubMenu
public SubMenu setHeaderView(View view) {
this.mSubMenu.setHeaderView(view);
return this;
}
@Override // android.view.SubMenu
public void clearHeader() {
this.mSubMenu.clearHeader();
}
@Override // android.view.SubMenu
public SubMenu setIcon(int i) {
this.mSubMenu.setIcon(i);
return this;
}
@Override // android.view.SubMenu
public SubMenu setIcon(Drawable drawable) {
this.mSubMenu.setIcon(drawable);
return this;
}
@Override // android.view.SubMenu
public MenuItem getItem() {
return getMenuItemWrapper(this.mSubMenu.getItem());
}
}