- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
66 lines
2.1 KiB
Java
66 lines
2.1 KiB
Java
package com.mbridge.msdk.newreward.player.view;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import android.widget.FrameLayout;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.newreward.player.iview.ICusTemplateView;
|
|
import com.mbridge.msdk.newreward.player.presenter.PlayPresenter902;
|
|
import com.mbridge.msdk.playercommon.PlayerView;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class Template902 extends BaseTemplate implements ICusTemplateView {
|
|
public Template902(@NonNull Context context) {
|
|
super(context);
|
|
PlayPresenter902 playPresenter902 = new PlayPresenter902(this);
|
|
this.presenter = playPresenter902;
|
|
playPresenter902.getView();
|
|
}
|
|
|
|
public Template902(@NonNull Context context, @Nullable AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.newreward.player.iview.ICusTemplateView
|
|
public void addCTAViewToLayout(View view, int i) {
|
|
if (this.mCtaLayout == null) {
|
|
return;
|
|
}
|
|
if (view != null && view.getParent() == null) {
|
|
this.mCtaLayout.addView(view);
|
|
}
|
|
this.mCtaLayout.setVisibility(i);
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.newreward.player.iview.ICusTemplateView
|
|
public int getCTAViewState() {
|
|
FrameLayout frameLayout = this.mCtaLayout;
|
|
if (frameLayout != null) {
|
|
return frameLayout.getVisibility();
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.newreward.player.view.BaseTemplate
|
|
public void addClickEvent() {
|
|
super.addClickEvent();
|
|
PlayerView playerView = this.mPlayerView;
|
|
if (playerView != null) {
|
|
playerView.setOnClickListener(this);
|
|
}
|
|
try {
|
|
View childAt = getChildAt(0);
|
|
if (childAt != null) {
|
|
childAt.setOnClickListener(this);
|
|
}
|
|
} catch (Exception e) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|