what-the-bank/sources/o/C0990TdL.java

166 lines
4.4 KiB
Java

package o;
import android.content.Context;
import android.view.ActionMode;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import androidx.appcompat.view.menu.MenuItemWrapperICS;
import java.util.ArrayList;
import o.vsf;
/* renamed from: o.TdL, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0990TdL extends ActionMode {
final vsf b;
final Context d;
public C0990TdL(Context context, vsf vsfVar) {
this.d = context;
this.b = vsfVar;
}
@Override // android.view.ActionMode
public final void setTitle(CharSequence charSequence) {
this.b.d(charSequence);
}
@Override // android.view.ActionMode
public final void setSubtitle(CharSequence charSequence) {
this.b.e(charSequence);
}
@Override // android.view.ActionMode
public final void invalidate() {
this.b.f();
}
@Override // android.view.ActionMode
public final void finish() {
this.b.e();
}
@Override // android.view.ActionMode
public final Menu getMenu() {
return new ZBy(this.d, (InterfaceMenuC13010fNw) this.b.ed_());
}
@Override // android.view.ActionMode
public final CharSequence getTitle() {
return this.b.j();
}
@Override // android.view.ActionMode
public final void setTitle(int i) {
this.b.e(i);
}
@Override // android.view.ActionMode
public final CharSequence getSubtitle() {
return this.b.g();
}
@Override // android.view.ActionMode
public final void setSubtitle(int i) {
this.b.b(i);
}
@Override // android.view.ActionMode
public final View getCustomView() {
return this.b.c();
}
@Override // android.view.ActionMode
public final void setCustomView(View view) {
this.b.a(view);
}
@Override // android.view.ActionMode
public final MenuInflater getMenuInflater() {
return this.b.ee_();
}
@Override // android.view.ActionMode
public final void setTitleOptionalHint(boolean z) {
this.b.c(z);
}
@Override // android.view.ActionMode
public final boolean isTitleOptional() {
return this.b.h();
}
/* renamed from: o.TdL$HBt */
/* loaded from: classes.dex */
public static class HBt implements vsf.HBt {
final ActionMode.Callback b;
final Context d;
final ArrayList<C0990TdL> c = new ArrayList<>();
final DFj<Menu, Menu> e = new DFj<>();
public HBt(Context context, ActionMode.Callback callback) {
this.d = context;
this.b = callback;
}
@Override // o.vsf.HBt
public final boolean ej_(vsf vsfVar, Menu menu) {
return this.b.onCreateActionMode(eh_(vsfVar), eg_(menu));
}
@Override // o.vsf.HBt
public final boolean ek_(vsf vsfVar, Menu menu) {
return this.b.onPrepareActionMode(eh_(vsfVar), eg_(menu));
}
@Override // o.vsf.HBt
public final boolean ei_(vsf vsfVar, MenuItem menuItem) {
return this.b.onActionItemClicked(eh_(vsfVar), new MenuItemWrapperICS(this.d, (tkI) menuItem));
}
@Override // o.vsf.HBt
public final void c(vsf vsfVar) {
this.b.onDestroyActionMode(eh_(vsfVar));
}
private Menu eg_(Menu menu) {
Menu menu2 = this.e.get(menu);
if (menu2 != null) {
return menu2;
}
ZBy zBy = new ZBy(this.d, (InterfaceMenuC13010fNw) menu);
this.e.put(menu, zBy);
return zBy;
}
public final ActionMode eh_(vsf vsfVar) {
int size = this.c.size();
for (int i = 0; i < size; i++) {
C0990TdL c0990TdL = this.c.get(i);
if (c0990TdL != null && c0990TdL.b == vsfVar) {
return c0990TdL;
}
}
C0990TdL c0990TdL2 = new C0990TdL(this.d, vsfVar);
this.c.add(c0990TdL2);
return c0990TdL2;
}
}
@Override // android.view.ActionMode
public final Object getTag() {
return this.b.c;
}
@Override // android.view.ActionMode
public final boolean getTitleOptionalHint() {
return this.b.a;
}
@Override // android.view.ActionMode
public final void setTag(Object obj) {
this.b.c = obj;
}
}