正在查看: 小柿子 v1.3.8 应用的 SjmDspRewardVideoActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 小柿子 v1.3.8 应用的 SjmDspRewardVideoActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.sjm.sjmdsp;
import android.app.Activity;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.view.KeyEvent;
import android.view.WindowManager;
import com.mbridge.msdk.thrid.okio.Segment;
import com.sjm.sjmdaly.R$id;
import com.sjm.sjmdaly.R$layout;
import com.sjm.sjmdsp.adCore.model.SjmDspAdItemData;
import com.sjm.sjmdsp.view.AdRewardVideoView;
import io.flutter.plugin.platform.PlatformPlugin;
import s1.g;
public class SjmDspRewardVideoActivity extends Activity implements AdRewardVideoView.a, g.a {
public AdRewardVideoView a;
public g b;
public boolean c = false;
public int d;
public int e;
public class a implements Runnable {
public a() {
}
@Override
public void run() {
SjmDspRewardVideoActivity.this.j();
}
}
@Override
public void a(int i) {
this.d = i;
if (i >= g().video.valid_duration && g().video.valid_duration != 0 && !this.c) {
this.c = true;
h().h();
}
if (this.d >= g().video.skip_duration) {
this.a.k();
}
}
@Override
public void b() {
h().j();
}
@Override
public void c(k1.a aVar) {
h().m(aVar);
finish();
}
@Override
public void d(String str) {
AdRewardVideoView adRewardVideoView = this.a;
if (adRewardVideoView != null) {
adRewardVideoView.setState(str);
}
}
@Override
public void e(int i) {
this.b.i();
}
public SjmDspAdItemData g() {
return this.b.a;
}
public g h() {
return this.b;
}
public final void i() {
this.e = this.a.d();
}
public final void j() {
this.a.h(this.e);
}
@Override
public void onAdClick() {
h().k();
}
@Override
public void onClose() {
h().l();
finish();
}
@Override
public void onConfigurationChanged(Configuration configuration) {
super.onConfigurationChanged(configuration);
if (getResources().getConfiguration().orientation == 2) {
return;
}
int i = getResources().getConfiguration().orientation;
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
requestWindowFeature(1);
getWindow().setFlags(Segment.SHARE_MINIMUM, Segment.SHARE_MINIMUM);
if (Build.VERSION.SDK_INT >= 28) {
WindowManager.LayoutParams attributes = getWindow().getAttributes();
attributes.layoutInDisplayCutoutMode = 1;
getWindow().setAttributes(attributes);
getWindow().getDecorView().setSystemUiVisibility(PlatformPlugin.DEFAULT_SYSTEM_UI);
}
setContentView(R$layout.activity_sjm_dsp_reward_video);
g g6 = g.g();
this.b = g6;
if (g6 == null) {
c(new k1.a(1003, "数据为空"));
return;
}
AdRewardVideoView adRewardVideoView = (AdRewardVideoView) findViewById(R$id.sjm_ad_RewardVideoView);
this.a = adRewardVideoView;
adRewardVideoView.c();
this.a.setInternalListener(this);
this.a.f353g = g();
this.a.j(this);
}
@Override
public void onDestroy() {
super.onDestroy();
this.a.i();
}
@Override
public boolean onKeyDown(int i, KeyEvent keyEvent) {
return i != 4;
}
@Override
public void onPause() {
i();
super.onPause();
}
@Override
public void onRestart() {
super.onRestart();
}
@Override
public void onResume() {
super.onResume();
new Handler().postDelayed(new a(), 10L);
}
@Override
public void onStart() {
super.onStart();
}
@Override
public void onStop() {
super.onStop();
}
}