421 lines
11 KiB
Java
421 lines
11 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.res.ColorStateList;
|
|
import android.graphics.PorterDuff;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.util.Base64;
|
|
import android.view.ActionProvider;
|
|
import android.view.ContextMenu;
|
|
import android.view.KeyEvent;
|
|
import android.view.MenuItem;
|
|
import android.view.SubMenu;
|
|
import android.view.View;
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class DyP implements tkI {
|
|
private static byte v = 6;
|
|
private static int w = 1;
|
|
private static int x;
|
|
private CharSequence b;
|
|
private Context c;
|
|
private MenuItem.OnMenuItemClickListener e;
|
|
private Drawable h;
|
|
private Intent k;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
private char f8140o;
|
|
private CharSequence q;
|
|
private CharSequence r;
|
|
private char s;
|
|
private CharSequence t;
|
|
private int p = 4096;
|
|
private int m = 4096;
|
|
private ColorStateList g = null;
|
|
private PorterDuff.Mode i = null;
|
|
private boolean f = false;
|
|
private boolean j = false;
|
|
private int a = 16;
|
|
private final int n = android.R.id.home;
|
|
private final int d = 0;
|
|
private final int l = 0;
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final boolean collapseActionView() {
|
|
return false;
|
|
}
|
|
|
|
@Override // o.tkI
|
|
public final hbU e() {
|
|
return null;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final boolean expandActionView() {
|
|
return false;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final View getActionView() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final ContextMenu.ContextMenuInfo getMenuInfo() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final SubMenu getSubMenu() {
|
|
return null;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean hasSubMenu() {
|
|
return false;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final boolean isActionViewExpanded() {
|
|
return false;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final void setShowAsAction(int i) {
|
|
}
|
|
|
|
private void u(String str, Object[] objArr) {
|
|
byte[] decode = Base64.decode(str, 0);
|
|
byte[] bArr = new byte[decode.length];
|
|
for (int i = 0; i < decode.length; i++) {
|
|
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ v);
|
|
}
|
|
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
|
|
}
|
|
|
|
public DyP(Context context, CharSequence charSequence) {
|
|
this.c = context;
|
|
this.q = charSequence;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setAlphabeticShortcut(char c) {
|
|
this.f8140o = Character.toLowerCase(c);
|
|
return this;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final MenuItem setAlphabeticShortcut(char c, int i) {
|
|
this.f8140o = Character.toLowerCase(c);
|
|
this.m = KeyEvent.normalizeMetaState(i);
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setIcon(Drawable drawable) {
|
|
this.h = drawable;
|
|
c();
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setIcon(int i) {
|
|
this.h = nMh.getDrawable(this.c, i);
|
|
c();
|
|
return this;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final MenuItem setNumericShortcut(char c, int i) {
|
|
this.s = c;
|
|
this.p = KeyEvent.normalizeMetaState(i);
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setShortcut(char c, char c2) {
|
|
this.s = c;
|
|
this.f8140o = Character.toLowerCase(c2);
|
|
return this;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final MenuItem setShortcut(char c, char c2, int i, int i2) {
|
|
this.s = c;
|
|
this.p = KeyEvent.normalizeMetaState(i);
|
|
this.f8140o = Character.toLowerCase(c2);
|
|
this.m = KeyEvent.normalizeMetaState(i2);
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setTitle(int i) {
|
|
int i2 = 2 % 2;
|
|
int i3 = x + 65;
|
|
w = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
String string = this.c.getResources().getString(i);
|
|
if (string.startsWith(",*,)")) {
|
|
Object[] objArr = new Object[1];
|
|
u(string.substring(4), objArr);
|
|
string = ((String) objArr[0]).intern();
|
|
int i5 = x + 119;
|
|
w = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
}
|
|
this.q = string;
|
|
int i7 = x + 125;
|
|
w = i7 % 128;
|
|
int i8 = i7 % 2;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setActionProvider(ActionProvider actionProvider) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final ActionProvider getActionProvider() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // o.tkI
|
|
public final tkI c(hbU hbu) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener onActionExpandListener) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final MenuItem setIconTintList(ColorStateList colorStateList) {
|
|
this.g = colorStateList;
|
|
this.f = true;
|
|
c();
|
|
return this;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final MenuItem setIconTintMode(PorterDuff.Mode mode) {
|
|
this.i = mode;
|
|
this.j = true;
|
|
c();
|
|
return this;
|
|
}
|
|
|
|
private void c() {
|
|
Drawable drawable = this.h;
|
|
if (drawable != null) {
|
|
if (this.f || this.j) {
|
|
Drawable pI_ = Tlu.pI_(drawable);
|
|
this.h = pI_;
|
|
Drawable mutate = pI_.mutate();
|
|
this.h = mutate;
|
|
if (this.f) {
|
|
Tlu.pF_(mutate, this.g);
|
|
}
|
|
if (this.j) {
|
|
Tlu.pG_(this.h, this.i);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final /* synthetic */ MenuItem setActionView(int i) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final /* synthetic */ MenuItem setActionView(View view) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final /* bridge */ /* synthetic */ MenuItem setContentDescription(CharSequence charSequence) {
|
|
this.b = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final /* synthetic */ MenuItem setShowAsActionFlags(int i) {
|
|
setShowAsAction(i);
|
|
return this;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final /* bridge */ /* synthetic */ MenuItem setTooltipText(CharSequence charSequence) {
|
|
this.r = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setVisible(boolean z) {
|
|
this.a = (z ? 0 : 8) | (this.a & 8);
|
|
return this;
|
|
}
|
|
|
|
@Override // o.tkI
|
|
/* renamed from: c */
|
|
public final tkI setTooltipText(CharSequence charSequence) {
|
|
this.r = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setTitleCondensed(CharSequence charSequence) {
|
|
this.t = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setTitle(CharSequence charSequence) {
|
|
this.q = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener onMenuItemClickListener) {
|
|
this.e = onMenuItemClickListener;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setNumericShortcut(char c) {
|
|
this.s = c;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setIntent(Intent intent) {
|
|
this.k = intent;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setEnabled(boolean z) {
|
|
this.a = (z ? 16 : 0) | (this.a & (-17));
|
|
return this;
|
|
}
|
|
|
|
@Override // o.tkI
|
|
/* renamed from: a */
|
|
public final tkI setContentDescription(CharSequence charSequence) {
|
|
this.b = charSequence;
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setChecked(boolean z) {
|
|
this.a = (z ? 2 : 0) | (this.a & (-3));
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final MenuItem setCheckable(boolean z) {
|
|
this.a = (z ? 1 : 0) | (this.a & (-2));
|
|
return this;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean isVisible() {
|
|
return (this.a & 8) == 0;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean isEnabled() {
|
|
return (this.a & 16) != 0;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean isChecked() {
|
|
return (this.a & 2) != 0;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final boolean isCheckable() {
|
|
return (this.a & 1) != 0;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final CharSequence getTooltipText() {
|
|
return this.r;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final CharSequence getTitleCondensed() {
|
|
CharSequence charSequence = this.t;
|
|
return charSequence == null ? this.q : charSequence;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final CharSequence getTitle() {
|
|
return this.q;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final int getOrder() {
|
|
return this.l;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final char getNumericShortcut() {
|
|
return this.s;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final int getNumericModifiers() {
|
|
return this.p;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final int getItemId() {
|
|
return this.n;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final Intent getIntent() {
|
|
return this.k;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final PorterDuff.Mode getIconTintMode() {
|
|
return this.i;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final ColorStateList getIconTintList() {
|
|
return this.g;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final Drawable getIcon() {
|
|
return this.h;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final int getGroupId() {
|
|
return this.d;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final CharSequence getContentDescription() {
|
|
return this.b;
|
|
}
|
|
|
|
@Override // android.view.MenuItem
|
|
public final char getAlphabeticShortcut() {
|
|
return this.f8140o;
|
|
}
|
|
|
|
@Override // o.tkI, android.view.MenuItem
|
|
public final int getAlphabeticModifiers() {
|
|
return this.m;
|
|
}
|
|
}
|