- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
62 lines
2.9 KiB
Java
62 lines
2.9 KiB
Java
package com.mbridge.msdk.newreward.player.presenter;
|
|
|
|
import android.text.TextUtils;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.foundation.tools.ak;
|
|
import com.mbridge.msdk.foundation.tools.aq;
|
|
import com.mbridge.msdk.newreward.a.b.b;
|
|
import com.mbridge.msdk.newreward.function.command.c;
|
|
import com.mbridge.msdk.newreward.function.command.f;
|
|
import com.mbridge.msdk.newreward.function.g.e;
|
|
import com.mbridge.msdk.newreward.player.iview.ICusECTemplateView;
|
|
import com.mbridge.msdk.newreward.player.iview.IECTempleView;
|
|
import java.lang.reflect.Proxy;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class ECPresenter404 extends ECTemplePresenter {
|
|
ICusECTemplateView iCusECTemplateView;
|
|
|
|
public ECPresenter404(IECTempleView iECTempleView) {
|
|
super(iECTempleView);
|
|
this.iCusECTemplateView = (ICusECTemplateView) Proxy.newProxyInstance(iECTempleView.getClass().getClassLoader(), new Class[]{ICusECTemplateView.class}, new e(iECTempleView, this.adapterModel, this.commandManager));
|
|
}
|
|
|
|
public void addMoreOfferView(ViewGroup viewGroup) {
|
|
try {
|
|
String a = aq.a(this.campaignEx.getendcard_url(), "mof");
|
|
if (!TextUtils.isEmpty(a) && Integer.parseInt(a) == 1) {
|
|
c cVar = this.commandManager;
|
|
cVar.d(cVar.a("add_temple", 295, "parent_temple", viewGroup, "more_offer_type", 2, "command_type", f.SHOW_ADD_TEMPLE), new b() { // from class: com.mbridge.msdk.newreward.player.presenter.ECPresenter404.1
|
|
@Override // com.mbridge.msdk.newreward.a.b.b
|
|
public void reqFailed(com.mbridge.msdk.foundation.c.b bVar) {
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.newreward.a.b.b
|
|
public void reqSuccessful(Object obj) {
|
|
try {
|
|
if (obj instanceof View) {
|
|
((View) obj).setVisibility(0);
|
|
new com.mbridge.msdk.video.dynview.h.b().a((View) obj, 0, ak.f(com.mbridge.msdk.foundation.controller.c.m().c()), 0, ak.a(com.mbridge.msdk.foundation.controller.c.m().c(), 100.0f), 500L);
|
|
}
|
|
ICusECTemplateView iCusECTemplateView = ECPresenter404.this.iCusECTemplateView;
|
|
if (iCusECTemplateView != null) {
|
|
iCusECTemplateView.reSetEndCardWidthAndHeight(ak.a(com.mbridge.msdk.foundation.controller.c.m().c(), 100.0f));
|
|
}
|
|
} catch (Exception e) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
} catch (Exception e) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|