- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
68 lines
2.8 KiB
Java
68 lines
2.8 KiB
Java
package com.mbridge.msdk.newreward.player.presenter;
|
|
|
|
import android.widget.FrameLayout;
|
|
import com.mbridge.msdk.e.b;
|
|
import com.mbridge.msdk.foundation.tools.af;
|
|
import com.mbridge.msdk.foundation.tools.ak;
|
|
import com.mbridge.msdk.foundation.tools.x;
|
|
import com.mbridge.msdk.newreward.function.g.e;
|
|
import com.mbridge.msdk.newreward.player.iview.IECTempleView;
|
|
import com.mbridge.msdk.video.dynview.c;
|
|
import com.mbridge.msdk.video.dynview.c.a;
|
|
import com.mbridge.msdk.video.dynview.e.h;
|
|
import java.lang.reflect.Proxy;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class ECHalfPresenter extends ECTemplePresenter {
|
|
IECTempleView iCusECTemplateView;
|
|
|
|
public ECHalfPresenter(IECTempleView iECTempleView) {
|
|
super(iECTempleView);
|
|
this.iCusECTemplateView = (IECTempleView) Proxy.newProxyInstance(iECTempleView.getClass().getClassLoader(), new Class[]{IECTempleView.class}, new e(iECTempleView, this.adapterModel, this.commandManager));
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.newreward.player.presenter.ECTemplePresenter, com.mbridge.msdk.newreward.player.presenter.AbsPresenter
|
|
public void getView() {
|
|
c b = new com.mbridge.msdk.video.dynview.j.c().b(this.context, this.campaignEx, -1, b.a() ? "cn_" : "en_");
|
|
this.nLogo = b.n();
|
|
com.mbridge.msdk.video.dynview.b.a().a(b, new h() { // from class: com.mbridge.msdk.newreward.player.presenter.ECHalfPresenter.1
|
|
@Override // com.mbridge.msdk.video.dynview.e.h
|
|
public void viewInflaterFail(a aVar) {
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.dynview.e.h
|
|
public void viewInflaterSuccess(com.mbridge.msdk.video.dynview.a aVar) {
|
|
ECHalfPresenter.this.initDataForView(aVar);
|
|
}
|
|
});
|
|
}
|
|
|
|
public void setHalfWH() {
|
|
int i;
|
|
int e;
|
|
int f;
|
|
try {
|
|
this.data.getRootViewGroup().setBackgroundColor(-1728053248);
|
|
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) this.data.getRootViewGroup().getLayoutParams();
|
|
layoutParams.gravity = 17;
|
|
if (this.campaignEx.getRewardTemplateMode() != null) {
|
|
i = this.campaignEx.getRewardTemplateMode().b();
|
|
} else {
|
|
i = x.a(this.context).getConfiguration().orientation;
|
|
}
|
|
if (i == 1) {
|
|
e = (int) (ak.e(this.context) * 0.55f);
|
|
f = (int) (ak.f(this.context) * 0.65f);
|
|
} else {
|
|
e = (int) (ak.e(this.context) * 0.6f);
|
|
f = (int) (ak.f(this.context) * 0.6f);
|
|
}
|
|
layoutParams.height = e;
|
|
layoutParams.width = f;
|
|
this.data.getRootViewGroup().setLayoutParams(layoutParams);
|
|
} catch (Throwable th) {
|
|
af.b("ECHalfPresenter", th.getMessage());
|
|
}
|
|
}
|
|
}
|