- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
87 lines
4.0 KiB
Java
87 lines
4.0 KiB
Java
package com.mbridge.msdk.dycreator.binding;
|
|
|
|
import android.text.TextUtils;
|
|
import android.view.View;
|
|
import com.facebook.gamingservices.cloudgaming.internal.SDKConstants;
|
|
import com.mbridge.msdk.dycreator.baseview.MBCountDownView;
|
|
import com.mbridge.msdk.dycreator.baseview.MBLinearLayout;
|
|
import com.mbridge.msdk.dycreator.baseview.MBRelativeLayout;
|
|
import com.mbridge.msdk.dycreator.baseview.inter.InterBase;
|
|
import com.mbridge.msdk.dycreator.binding.a.e;
|
|
import com.mbridge.msdk.dycreator.binding.a.f;
|
|
import com.mbridge.msdk.dycreator.binding.a.g;
|
|
import com.mbridge.msdk.dycreator.binding.base.BaseStrategy;
|
|
import com.mbridge.msdk.dycreator.bridge.MBSplashData;
|
|
import com.mbridge.msdk.dycreator.e.d;
|
|
import com.vungle.ads.internal.presenter.NativeAdPresenter;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class a implements View.OnClickListener {
|
|
private com.mbridge.msdk.dycreator.f.a.a a;
|
|
|
|
public a(com.mbridge.msdk.dycreator.f.a.a aVar) {
|
|
this.a = aVar;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
com.mbridge.msdk.dycreator.f.a.a aVar;
|
|
if (view == 0 || !(view instanceof InterBase)) {
|
|
return;
|
|
}
|
|
if (!(view instanceof MBCountDownView) || (aVar = this.a) == null || aVar.getEffectData() == null || this.a.getEffectData().isCanSkip()) {
|
|
com.mbridge.msdk.dycreator.f.a.a aVar2 = this.a;
|
|
if (aVar2 != null && (view instanceof MBRelativeLayout) && d.a(view, aVar2)) {
|
|
com.mbridge.msdk.dycreator.f.a.a aVar3 = this.a;
|
|
if (aVar3 instanceof MBSplashData) {
|
|
MBRelativeLayout mBRelativeLayout = (MBRelativeLayout) view;
|
|
((MBSplashData) aVar3).setxInScreen(mBRelativeLayout.getxInScreen());
|
|
((MBSplashData) this.a).setyInScreen(mBRelativeLayout.getyInScreen());
|
|
((MBSplashData) this.a).setClickType(1);
|
|
}
|
|
}
|
|
com.mbridge.msdk.dycreator.f.a.a aVar4 = this.a;
|
|
if (aVar4 != null && (view instanceof MBLinearLayout) && d.a(view, aVar4)) {
|
|
com.mbridge.msdk.dycreator.f.a.a aVar5 = this.a;
|
|
if (aVar5 instanceof MBSplashData) {
|
|
MBLinearLayout mBLinearLayout = (MBLinearLayout) view;
|
|
((MBSplashData) aVar5).setxInScreen(mBLinearLayout.getxInScreen());
|
|
((MBSplashData) this.a).setyInScreen(mBLinearLayout.getyInScreen());
|
|
((MBSplashData) this.a).setClickType(0);
|
|
}
|
|
}
|
|
String strategyDes = ((InterBase) view).getStrategyDes();
|
|
if (TextUtils.isEmpty(strategyDes)) {
|
|
return;
|
|
}
|
|
c.a();
|
|
BaseStrategy baseStrategy = null;
|
|
if (!TextUtils.isEmpty(strategyDes)) {
|
|
if (strategyDes.equals("close")) {
|
|
baseStrategy = new com.mbridge.msdk.dycreator.binding.a.c();
|
|
} else if (strategyDes.equals(NativeAdPresenter.DOWNLOAD)) {
|
|
baseStrategy = new com.mbridge.msdk.dycreator.binding.a.b();
|
|
} else if (!strategyDes.equals(SDKConstants.PARAM_TOURNAMENTS_DEEPLINK) && strategyDes.equals("activity")) {
|
|
baseStrategy = new com.mbridge.msdk.dycreator.binding.a.a();
|
|
}
|
|
if (strategyDes.equals("feedback")) {
|
|
baseStrategy = new com.mbridge.msdk.dycreator.binding.a.d();
|
|
}
|
|
if (strategyDes.equals("notice")) {
|
|
baseStrategy = new e();
|
|
}
|
|
if (strategyDes.equals("permissionInfo")) {
|
|
baseStrategy = new f();
|
|
}
|
|
if (strategyDes.equals("privateAddress")) {
|
|
baseStrategy = new g();
|
|
}
|
|
}
|
|
if (baseStrategy != null) {
|
|
baseStrategy.bindClickData(view, this.a);
|
|
}
|
|
}
|
|
}
|
|
}
|