正在查看: 新暖心缘 v8.1.1 应用的 ActorVideoAlbumActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 新暖心缘 v8.1.1 应用的 ActorVideoAlbumActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.luanxingyuan.app.activity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import com.faceunity.wrapper.faceunity;
import com.luanxingyuan.app.base.BaseActivity;
import com.luanxingyuan.app.bean.AlbumBean;
import com.luanxingyuan.app.dialog.w;
import com.luanxingyuan.app.view.recycle.a;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import java.util.List;
public class ActorVideoAlbumActivity extends BaseActivity {
com.luanxingyuan.app.view.recycle.a adapter;
@BindView
RecyclerView contentRv;
int fileType;
int mActorId;
@BindView
SmartRefreshLayout refreshLayout;
r6.f<AlbumBean> requester;
class a extends r6.f<AlbumBean> {
a() {
}
@Override
public void j(List<AlbumBean> list, boolean z7) {
ActorVideoAlbumActivity.this.adapter.h(list, z7);
}
}
class b extends com.luanxingyuan.app.view.recycle.a {
b(a.b... bVarArr) {
super(bVarArr);
}
@Override
public void d(com.luanxingyuan.app.view.recycle.f fVar, Object obj) {
AlbumBean albumBean = (AlbumBean) obj;
fVar.getView(2131296912).setVisibility(albumBean.isLock() ? 0 : 8);
fVar.getView(2131297073).setVisibility(albumBean.t_file_type != 0 ? 0 : 8);
String str = albumBean.t_file_type == 0 ? albumBean.t_addres_url : albumBean.t_video_img;
if (albumBean.isLock()) {
com.bumptech.glide.b.x(ActorVideoAlbumActivity.this.getActivity()).p(str).r0(new d3.i(), new f8.b(100, 2)).G0((ImageView) fVar.getView(2131296557));
} else {
com.bumptech.glide.b.x(ActorVideoAlbumActivity.this.getActivity()).p(str).p0(new d3.i()).G0((ImageView) fVar.getView(2131296557));
}
}
}
class c implements com.luanxingyuan.app.view.recycle.c {
class a implements q6.a<Boolean> {
final AlbumBean f6069a;
a(AlbumBean albumBean) {
this.f6069a = albumBean;
}
@Override
public void execute(Boolean bool) {
if (bool.booleanValue()) {
ActorVideoAlbumActivity.this.toIntent(this.f6069a);
}
}
}
c() {
}
@Override
public void a(View view, Object obj, int i8) {
AlbumBean albumBean = (AlbumBean) ActorVideoAlbumActivity.this.adapter.e().get(i8);
if (albumBean.canSee()) {
ActorVideoAlbumActivity.this.toIntent(albumBean);
} else {
w.i(ActorVideoAlbumActivity.this.getActivity(), albumBean, ActorVideoAlbumActivity.this.mActorId, new a(albumBean));
}
}
}
public BaseActivity getActivity() {
return this.mContext;
}
public static void start(Context context, int i8, int i9) {
Intent intent = new Intent(context, (Class<?>) ActorVideoAlbumActivity.class);
intent.putExtra("fileType", i9);
intent.putExtra("otherId", i8);
boolean z7 = context instanceof Activity;
if (!z7) {
intent.addFlags(faceunity.FUAITYPE_HUMAN_PROCESSOR_DETECT);
}
if (!z7) {
intent.addFlags(faceunity.FUAITYPE_HUMAN_PROCESSOR_DETECT);
}
context.startActivity(intent);
}
public void toIntent(AlbumBean albumBean) {
if (albumBean.t_file_type == 1) {
ActorVideoPlayActivity.start(getActivity(), this.mActorId, albumBean.t_addres_url);
return;
}
if (TextUtils.isEmpty(albumBean.t_addres_url)) {
return;
}
Intent intent = new Intent(getActivity(), (Class<?>) PhotoActivity.class);
intent.putExtra("image_url", albumBean.t_addres_url);
if (!(this.mContext instanceof Activity)) {
intent.addFlags(faceunity.FUAITYPE_HUMAN_PROCESSOR_DETECT);
}
getActivity().startActivity(intent);
}
@Override
protected View getContentView() {
return inflate(2131492897);
}
@Override
protected void onContentAdded() {
this.fileType = getIntent().getIntExtra("fileType", this.fileType);
this.mActorId = getIntent().getIntExtra("otherId", this.mActorId);
setTitle(this.fileType == 0 ? "相册" : "视频");
a aVar = new a();
this.requester = aVar;
aVar.n(new r6.h(this.refreshLayout));
this.requester.m(m6.a.H());
this.requester.p("fileType", Integer.valueOf(this.fileType));
this.requester.p("coverUserId", Integer.valueOf(this.mActorId));
this.refreshLayout.T(new r6.g(this.requester));
this.refreshLayout.S(new r6.g(this.requester));
this.contentRv.setLayoutManager(new GridLayoutManager(getActivity(), 3));
b bVar = new b(new a.b(2131493158, AlbumBean.class));
this.adapter = bVar;
bVar.j(new c());
this.contentRv.setAdapter(this.adapter);
this.requester.i();
}
}