正在查看: MX Player v1.97.8 应用的 PrefActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MX Player v1.97.8 应用的 PrefActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mxtech.videoplayer.ad.online.features.language;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.m.x.player.pandora.common.fromstack.From;
import com.m.x.player.pandora.common.fromstack.FromStack;
import com.mxtech.videoplayer.ad.online.features.language.bean.Genre;
import com.mxtech.videoplayer.ad.online.features.language.bean.GenreWrappers;
import com.mxtech.videoplayer.ad.online.model.bean.EmptyOrNetErrorInfo;
import defpackage.ab5;
import defpackage.awd;
import defpackage.bwd;
import defpackage.gfh;
import defpackage.mdg;
import defpackage.pvd;
import defpackage.qvd;
import defpackage.tuc;
import defpackage.uvd;
import defpackage.vvd;
import defpackage.weh;
import defpackage.xa5;
import defpackage.yn7;
import defpackage.z6h;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
public class PrefActivity extends qvd implements tuc {
public uvd A;
public uvd B;
public uvd C;
public vb5 D;
public RecyclerView v;
public mxb w;
public View x;
public uvd z;
public final ab5 y = new ab5();
public final LinkedList E = new LinkedList();
public static void u6(Context context, FromStack fromStack) {
gfh.d(new mdg("preferenceSettingsClicked", weh.c));
Intent intent = new Intent(context, (Class<?>) PrefActivity.class);
intent.putExtra(FromStack.FROM_LIST, fromStack);
context.startActivity(intent);
}
@Override
public final void P0(int i) {
if (i == 2) {
this.w.i = ti.p(new EmptyOrNetErrorInfo[]{EmptyOrNetErrorInfo.create(2)});
this.w.notifyDataSetChanged();
return;
}
if (i == 1) {
this.w.i = ti.p(new EmptyOrNetErrorInfo[]{EmptyOrNetErrorInfo.create(5)});
this.w.notifyDataSetChanged();
return;
}
ArrayList arrayList = new ArrayList();
Genre[] genreArr = this.u.b.genre;
if (genreArr != null && genreArr.length > 0) {
arrayList.add(new yn7());
LinkedList linkedList = this.E;
linkedList.clear();
for (Genre genre : genreArr) {
GenreWrappers.GenreWrapper buildGenreWrapper = GenreWrappers.buildGenreWrapper(genre);
if (buildGenreWrapper != null) {
arrayList.add(buildGenreWrapper);
linkedList.add(buildGenreWrapper);
}
}
}
arrayList.add(new xa5());
mxb mxbVar = this.w;
mxbVar.i = arrayList;
mxbVar.notifyDataSetChanged();
}
@Override
public final void c2(int i) {
if (i == 3) {
z6h.b(2131888473, false);
} else {
super.c2(i);
}
}
@Override
public final From d6() {
return From.create("pref", "pref", "pref");
}
@Override
public final void i3(int i, int i2) {
uvd t6 = t6(((GenreWrappers.GenreWrapper) this.E.get(i)).getClass());
if (t6 != null) {
t6.n(i2);
}
if (this.x.getVisibility() != 0) {
this.x.setVisibility(0);
}
}
@Override
public final int j6() {
return 2131558526;
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
RecyclerView findViewById = findViewById(2131365603);
this.v = findViewById;
findViewById.setLayoutManager(new LinearLayoutManager(1));
mxb mxbVar = new mxb();
this.w = mxbVar;
if (this.D == null) {
this.D = new vb5(new pvd(this));
}
mxbVar.g(EmptyOrNetErrorInfo.class, this.D);
this.w.g(List.class, new vvd(this.u));
this.w.g(awd.class, new bwd());
this.w.g(GenreWrappers.TvShowGenre.class, t6(GenreWrappers.TvShowGenre.class));
this.w.g(GenreWrappers.MusicGenre.class, t6(GenreWrappers.MusicGenre.class));
this.w.g(GenreWrappers.ShortVideoGenre.class, t6(GenreWrappers.ShortVideoGenre.class));
this.w.g(GenreWrappers.MovieGenre.class, t6(GenreWrappers.MovieGenre.class));
this.w.g(xa5.class, this.y);
this.v.setAdapter(this.w);
this.x = findViewById(2131362327);
this.u.f();
this.w.i = ti.p(new EmptyOrNetErrorInfo[]{EmptyOrNetErrorInfo.create(3)});
this.w.notifyDataSetChanged();
l6(getString(2131889201));
}
@Override
public final void p6() {
this.u.d();
}
@Override
public final void q2() {
if (this.x.getVisibility() != 0) {
this.x.setVisibility(0);
}
}
public final uvd t6(Class<? extends GenreWrappers.GenreWrapper> cls) {
if (GenreWrappers.TvShowGenre.class.equals(cls)) {
if (this.z == null) {
this.z = new uvd(this);
}
return this.z;
}
if (GenreWrappers.MusicGenre.class.equals(cls)) {
if (this.A == null) {
this.A = new uvd(this);
}
return this.A;
}
if (GenreWrappers.MovieGenre.class.equals(cls)) {
if (this.B == null) {
this.B = new uvd(this);
}
return this.B;
}
if (!GenreWrappers.ShortVideoGenre.class.equals(cls)) {
return null;
}
if (this.C == null) {
this.C = new uvd(this);
}
return this.C;
}
}