- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
66 lines
2.4 KiB
Java
66 lines
2.4 KiB
Java
package com.mbridge.msdk.splash.view;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import android.widget.RelativeLayout;
|
|
import com.mbridge.msdk.shake.MBShakeView;
|
|
import com.mbridge.msdk.shake.b;
|
|
import com.mbridge.msdk.splash.a.c;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class MBSplashNativeView extends BaseMBSplashNativeView {
|
|
public MBSplashNativeView(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
public MBSplashNativeView(Context context, AttributeSet attributeSet) {
|
|
this(context, attributeSet, 0);
|
|
}
|
|
|
|
public MBSplashNativeView(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
}
|
|
|
|
public MBSplashNativeView(Context context, MBSplashView mBSplashView, c cVar) {
|
|
super(context, mBSplashView, cVar);
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.splash.view.BaseMBSplashNativeView
|
|
public final void a() {
|
|
this.b.setVisibility(8);
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.splash.view.BaseMBSplashNativeView
|
|
public final void b() {
|
|
if (this.j == 1) {
|
|
MBShakeView mBShakeView = new MBShakeView(getContext());
|
|
this.s = mBShakeView;
|
|
mBShakeView.initView(this.r.getAdCall());
|
|
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, -2);
|
|
layoutParams.addRule(13);
|
|
this.s.setLayoutParams(layoutParams);
|
|
addView(this.s);
|
|
this.g.setVisibility(4);
|
|
this.g.setEnabled(false);
|
|
this.s.setOnClickListener(new View.OnClickListener() { // from class: com.mbridge.msdk.splash.view.MBSplashNativeView.1
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
MBSplashNativeView.this.a(0);
|
|
}
|
|
});
|
|
this.t = new b(this.k, this.l * 1000) { // from class: com.mbridge.msdk.splash.view.MBSplashNativeView.2
|
|
@Override // com.mbridge.msdk.shake.b
|
|
public final void a() {
|
|
MBSplashNativeView mBSplashNativeView = MBSplashNativeView.this;
|
|
if (mBSplashNativeView.o || mBSplashNativeView.n) {
|
|
return;
|
|
}
|
|
mBSplashNativeView.a(4);
|
|
com.mbridge.msdk.shake.a.a().b(this);
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|