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

174 lines
6.4 KiB
Java

package o;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
import androidx.core.view.accessibility.AccessibilityNodeProviderCompat;
import androidx.recyclerview.widget.RecyclerView;
import java.util.Map;
import java.util.WeakHashMap;
/* loaded from: classes.dex */
public class TMC extends yZt {
final RecyclerView a;
public final IeS e;
public TMC(RecyclerView recyclerView) {
this.a = recyclerView;
IeS ieS = this.e;
if (ieS == null || !(ieS instanceof IeS)) {
this.e = new IeS(this);
} else {
this.e = ieS;
}
}
@Override // o.yZt
public boolean performAccessibilityAction(View view, int i, Bundle bundle) {
if (super.performAccessibilityAction(view, i, bundle)) {
return true;
}
if (this.a.d() || this.a.x == null) {
return false;
}
RecyclerView.tOB tob = this.a.x;
return tob.Cn_(tob.s.M, tob.s.R, i, bundle);
}
@Override // o.yZt
public void onInitializeAccessibilityNodeInfo(View view, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) {
super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat);
if (this.a.d() || this.a.x == null) {
return;
}
RecyclerView.tOB tob = this.a.x;
tob.a(tob.s.M, tob.s.R, accessibilityNodeInfoCompat);
}
@Override // o.yZt
public void onInitializeAccessibilityEvent(View view, AccessibilityEvent accessibilityEvent) {
super.onInitializeAccessibilityEvent(view, accessibilityEvent);
if (!(view instanceof RecyclerView) || this.a.d()) {
return;
}
RecyclerView recyclerView = (RecyclerView) view;
if (recyclerView.x != null) {
recyclerView.x.Iu_(accessibilityEvent);
}
}
/* loaded from: classes.dex */
public static class IeS extends yZt {
final TMC a;
public Map<View, yZt> d = new WeakHashMap();
public IeS(TMC tmc) {
this.a = tmc;
}
@Override // o.yZt
public final void onInitializeAccessibilityNodeInfo(View view, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) {
if (!this.a.a.d() && this.a.a.x != null) {
this.a.a.x.d(view, accessibilityNodeInfoCompat);
yZt yzt = this.d.get(view);
if (yzt != null) {
yzt.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat);
return;
} else {
super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat);
return;
}
}
super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat);
}
@Override // o.yZt
public final boolean performAccessibilityAction(View view, int i, Bundle bundle) {
if (!this.a.a.d() && this.a.a.x != null) {
yZt yzt = this.d.get(view);
if (yzt != null) {
if (yzt.performAccessibilityAction(view, i, bundle)) {
return true;
}
} else if (super.performAccessibilityAction(view, i, bundle)) {
return true;
}
RecyclerView.tOB tob = this.a.a.x;
RecyclerView.huo huoVar = tob.s.M;
RecyclerView.AcL acL = tob.s.R;
return false;
}
return super.performAccessibilityAction(view, i, bundle);
}
@Override // o.yZt
public final void sendAccessibilityEvent(View view, int i) {
yZt yzt = this.d.get(view);
if (yzt != null) {
yzt.sendAccessibilityEvent(view, i);
} else {
super.sendAccessibilityEvent(view, i);
}
}
@Override // o.yZt
public final void sendAccessibilityEventUnchecked(View view, AccessibilityEvent accessibilityEvent) {
yZt yzt = this.d.get(view);
if (yzt != null) {
yzt.sendAccessibilityEventUnchecked(view, accessibilityEvent);
} else {
super.sendAccessibilityEventUnchecked(view, accessibilityEvent);
}
}
@Override // o.yZt
public final boolean dispatchPopulateAccessibilityEvent(View view, AccessibilityEvent accessibilityEvent) {
yZt yzt = this.d.get(view);
if (yzt != null) {
return yzt.dispatchPopulateAccessibilityEvent(view, accessibilityEvent);
}
return super.dispatchPopulateAccessibilityEvent(view, accessibilityEvent);
}
@Override // o.yZt
public final void onPopulateAccessibilityEvent(View view, AccessibilityEvent accessibilityEvent) {
yZt yzt = this.d.get(view);
if (yzt != null) {
yzt.onPopulateAccessibilityEvent(view, accessibilityEvent);
} else {
super.onPopulateAccessibilityEvent(view, accessibilityEvent);
}
}
@Override // o.yZt
public final void onInitializeAccessibilityEvent(View view, AccessibilityEvent accessibilityEvent) {
yZt yzt = this.d.get(view);
if (yzt != null) {
yzt.onInitializeAccessibilityEvent(view, accessibilityEvent);
} else {
super.onInitializeAccessibilityEvent(view, accessibilityEvent);
}
}
@Override // o.yZt
public final boolean onRequestSendAccessibilityEvent(ViewGroup viewGroup, View view, AccessibilityEvent accessibilityEvent) {
yZt yzt = this.d.get(viewGroup);
if (yzt != null) {
return yzt.onRequestSendAccessibilityEvent(viewGroup, view, accessibilityEvent);
}
return super.onRequestSendAccessibilityEvent(viewGroup, view, accessibilityEvent);
}
@Override // o.yZt
public final AccessibilityNodeProviderCompat getAccessibilityNodeProvider(View view) {
yZt yzt = this.d.get(view);
if (yzt != null) {
return yzt.getAccessibilityNodeProvider(view);
}
return super.getAccessibilityNodeProvider(view);
}
}
}