正在查看: Spermatid Pro v6.4.3 应用的 VideoContentActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Spermatid Pro v6.4.3 应用的 VideoContentActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.kc.openset.video;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import androidx.fragment.app.FragmentActivity;
import com.kc.openset.R;
import com.kc.openset.VideoContentConfigData;
import com.kc.openset.util.CircularProgressView;
import com.kc.openset.util.c;
import com.kc.openset.util.i0;
public class VideoContentActivity extends FragmentActivity {
private static OSETVideoContentTaskListener a;
private String b;
private int f2082c = 1;
private int f2083d = 15;
private boolean e;
private CircularProgressView f;
private VideoContentResult g;
public static void a(Activity activity, VideoContentConfigData videoContentConfigData, OSETVideoContentTaskListener oSETVideoContentTaskListener) {
a = oSETVideoContentTaskListener;
Intent intent = new Intent(activity, (Class<?>) VideoContentActivity.class);
intent.putExtra("intent_key_video_content_config", videoContentConfigData);
activity.startActivity(intent);
}
public void a(View view) {
finish();
}
public void b() {
CircularProgressView circularProgressView = this.f;
if (circularProgressView == null) {
return;
}
circularProgressView.setOnProgressListener(new b(this));
this.f.a(this.f2082c, this.f2083d);
}
private void c() {
VideoContentConfigData videoContentConfigData = (VideoContentConfigData) getIntent().getSerializableExtra("intent_key_video_content_config");
if (videoContentConfigData != null) {
this.b = videoContentConfigData.c();
if (videoContentConfigData.a() > 0) {
this.f2082c = videoContentConfigData.a();
}
if (videoContentConfigData.b() > 0) {
this.f2083d = videoContentConfigData.b();
}
this.e = videoContentConfigData.d();
}
}
private void d() {
ImageView imageView = (ImageView) findViewById(R.id.iv_back);
if (this.e) {
imageView.setVisibility(0);
int a2 = i0.a(this);
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) imageView.getLayoutParams();
layoutParams.topMargin = a2;
layoutParams.leftMargin = a2 / 2;
imageView.setLayoutParams(layoutParams);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
VideoContentActivity.this.a(view);
}
});
}
this.f = findViewById(R.id.cpv);
}
private void e() {
OSETVideoContent.getInstance().setPosId(this.b).loadRecommend(new a(this));
}
public void onBackPressed() {
super/*androidx.activity.ComponentActivity*/.onBackPressed();
VideoContentResult videoContentResult = this.g;
if (videoContentResult == null || !videoContentResult.onBackPress()) {
super/*androidx.activity.ComponentActivity*/.onBackPressed();
}
}
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.oset_activity_video_content);
c.b(this, 0, false);
c();
d();
e();
}
public void onDestroy() {
super.onDestroy();
OSETVideoContentTaskListener oSETVideoContentTaskListener = a;
if (oSETVideoContentTaskListener != null) {
oSETVideoContentTaskListener.onClose();
a = null;
}
CircularProgressView circularProgressView = this.f;
if (circularProgressView != null) {
circularProgressView.a();
this.f = null;
}
VideoContentResult videoContentResult = this.g;
if (videoContentResult != null) {
videoContentResult.destroy();
this.g = null;
}
}
}