- 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
70 lines
2.3 KiB
Java
70 lines
2.3 KiB
Java
package com.mbridge.msdk.dycreator.baseview;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import com.mbridge.msdk.dycreator.binding.response.SplashResData;
|
|
import com.mbridge.msdk.dycreator.bus.EventBus;
|
|
import com.mbridge.msdk.dycreator.listener.action.EAction;
|
|
import com.mbridge.msdk.e.a.a;
|
|
import com.mbridge.msdk.e.a.b;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class MBCountDownView extends MBTextView {
|
|
private b a;
|
|
private MBCountDownView b;
|
|
|
|
public MBCountDownView(Context context) {
|
|
super(context);
|
|
this.b = this;
|
|
}
|
|
|
|
public MBCountDownView(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
this.b = this;
|
|
}
|
|
|
|
public MBCountDownView(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
this.b = this;
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.dycreator.baseview.MBTextView, android.widget.TextView, android.view.View
|
|
public void onAttachedToWindow() {
|
|
super.onAttachedToWindow();
|
|
b bVar = this.a;
|
|
if (bVar != null) {
|
|
bVar.b();
|
|
}
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.dycreator.baseview.MBTextView, android.view.View
|
|
public void onDetachedFromWindow() {
|
|
super.onDetachedFromWindow();
|
|
b bVar = this.a;
|
|
if (bVar != null) {
|
|
bVar.a();
|
|
}
|
|
}
|
|
|
|
public void initView(final String str, final String str2, int i) {
|
|
this.a = new b().b(i * 1000).a(1000L).a(new a() { // from class: com.mbridge.msdk.dycreator.baseview.MBCountDownView.1
|
|
@Override // com.mbridge.msdk.e.a.a
|
|
public void onTick(long j) {
|
|
if (str2.startsWith("zh")) {
|
|
MBCountDownView.this.b.setText((j / 1000) + "s" + str);
|
|
return;
|
|
}
|
|
MBCountDownView.this.b.setText(MBCountDownView.this.b + " " + (j / 1000) + "s");
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.e.a.a
|
|
public void onFinish() {
|
|
MBCountDownView.this.a.a();
|
|
SplashResData splashResData = new SplashResData();
|
|
splashResData.seteAction(EAction.CLOSE);
|
|
EventBus.getDefault().post(splashResData);
|
|
}
|
|
});
|
|
}
|
|
}
|