- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
72 lines
2.6 KiB
Java
72 lines
2.6 KiB
Java
package com.mbridge.msdk.video.module;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.RelativeLayout;
|
|
import com.mbridge.msdk.video.signal.factory.b;
|
|
import com.mbridge.msdk.widget.a;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class MBridgeVastEndCardView extends MBridgeBaseView {
|
|
private ViewGroup m;
|
|
private View n;
|
|
private View o;
|
|
|
|
public void preLoadData(b bVar) {
|
|
}
|
|
|
|
public MBridgeVastEndCardView(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
public MBridgeVastEndCardView(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.module.MBridgeBaseView
|
|
public void init(Context context) {
|
|
int findLayout = findLayout("mbridge_reward_endcard_vast");
|
|
if (findLayout >= 0) {
|
|
this.c.inflate(findLayout, this);
|
|
this.m = (ViewGroup) findViewById(findID("mbridge_rl_content"));
|
|
this.n = findViewById(findID("mbridge_iv_vastclose"));
|
|
View findViewById = findViewById(findID("mbridge_iv_vastok"));
|
|
this.o = findViewById;
|
|
this.e = isNotNULL(this.m, this.n, findViewById);
|
|
c();
|
|
if (this.e) {
|
|
setMatchParent();
|
|
setBackgroundResource(findColor("mbridge_reward_endcard_vast_bg"));
|
|
setClickable(true);
|
|
((RelativeLayout.LayoutParams) this.m.getLayoutParams()).addRule(13, -1);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.module.MBridgeBaseView
|
|
public final void c() {
|
|
super.c();
|
|
if (this.e) {
|
|
this.n.setOnClickListener(new View.OnClickListener() { // from class: com.mbridge.msdk.video.module.MBridgeVastEndCardView.1
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
MBridgeVastEndCardView.this.notifyListener.a(104, "");
|
|
}
|
|
});
|
|
this.o.setOnClickListener(new a() { // from class: com.mbridge.msdk.video.module.MBridgeVastEndCardView.2
|
|
@Override // com.mbridge.msdk.widget.a
|
|
public final void onNoDoubleClick(View view) {
|
|
MBridgeVastEndCardView mBridgeVastEndCardView = MBridgeVastEndCardView.this;
|
|
mBridgeVastEndCardView.notifyListener.a(108, mBridgeVastEndCardView.d());
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public void notifyShowListener() {
|
|
this.notifyListener.a(111, "");
|
|
}
|
|
}
|