FLIX VISION v2.8.2版本的 MD5 值为:4d33b143293b36f23ce5a6a5834e6993
以下内容为反编译后的 AnimesListActivity.java 源代码,内容仅作参考
package flix.com.vision.activities;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ArgbEvaluator;
import android.animation.ValueAnimator;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.os.Bundle;
import android.os.Handler;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.widget.Toolbar;
import ba.f;
import com.malinskiy.superrecyclerview.SuperRecyclerView;
import com.uwetrottmann.trakt5.TraktV2;
import flix.com.vision.App;
import flix.com.vision.R;
import flix.com.vision.activities.AnimeHistoryActivity;
import flix.com.vision.activities.AnimeSearchResultActivty;
import flix.com.vision.activities.AnimesFavoritesAcvivity;
import flix.com.vision.activities.AnimesListActivity;
import flix.com.vision.helpers.CenterGridLayoutManager;
import flix.com.vision.materialsearchview.MaterialSearchView;
import flix.com.vision.models.Anime;
import gb.c;
import hb.d;
import j1.w;
import java.net.URLEncoder;
import java.util.ArrayList;
import q2.m;
import v9.g;
import v9.h;
public class AnimesListActivity extends x9.a implements d {
public static final int Y = 0;
public MaterialSearchView D;
public RelativeLayout E;
public RelativeLayout F;
public RelativeLayout G;
public RelativeLayout H;
public TextView I;
public TextView J;
public TextView K;
public TextView L;
public ImageView M;
public ImageView N;
public ImageView O;
public ImageView P;
public RelativeLayout S;
public ArrayList<Anime> U;
public f V;
public SuperRecyclerView W;
public int Q = 0;
public final int R = 200;
public final String T = "";
public boolean X = false;
public class a implements MaterialSearchView.OnQueryTextListener {
public a() {
}
@Override
public boolean onQueryTextChange(String str) {
if (str.length() > 1) {
int i10 = AnimesListActivity.Y;
AnimesListActivity animesListActivity = AnimesListActivity.this;
animesListActivity.getClass();
ArrayList arrayList = new ArrayList();
String concat = "http://suggestqueries.google.com/complete/search?client=youtube&ds=yt&q=".concat(str);
try {
URLEncoder.encode(str, "UTF-8");
App.getInstance().addToRequestQueue(new m(0, concat, new w(5, animesListActivity, arrayList), new b3.b(16)), "MOVIES_App_Update_version");
} catch (Exception unused) {
}
}
return false;
}
@Override
public boolean onQueryTextSubmit(String str) {
if (str == null || str.length() < 1) {
return false;
}
boolean isTVDevice = App.getInstance().isTVDevice();
AnimesListActivity animesListActivity = AnimesListActivity.this;
if (isTVDevice) {
Intent intent = new Intent(animesListActivity, (Class<?>) AnimeSearchResultActivty.class);
intent.putExtra("query", str);
animesListActivity.startActivity(intent);
return false;
}
Intent intent2 = new Intent(animesListActivity, (Class<?>) AnimeSearchResultActivityClassic.class);
intent2.putExtra("query", str);
animesListActivity.startActivity(intent2);
return false;
}
}
public class b extends AnimatorListenerAdapter {
@Override
public void onAnimationEnd(Animator animator) {
super.onAnimationEnd(animator);
}
}
public void ExtractDominentColor() {
ValueAnimator ofObject = ValueAnimator.ofObject(new ArgbEvaluator(), 0, 2505092);
ofObject.setDuration(2000L);
ofObject.addUpdateListener(new y5.a(this, 5));
ofObject.addListener(new b());
ofObject.start();
}
public void applyFilter() {
recreate();
}
public final void d(int i10) {
String string = App.getInstance().f11732q.getString("server_anime", "1");
String string2 = App.getInstance().f11732q.getString("genre_anime", "");
String string3 = App.getInstance().f11732q.getString("year_anime", "");
String string4 = App.getInstance().f11732q.getString("type_anime", "");
String string5 = App.getInstance().f11732q.getString("lang_anime", "");
if (string2.equals("All")) {
string2 = "";
}
string4.equals("All");
if (string3.equals("All")) {
string3 = "";
}
if (string5.equals("All")) {
string5 = "";
}
this.U.addAll(App.getInstance().f11731p.getGoAnime(string2, string3, string.equals(TraktV2.API_VERSION) ? "" : string5, i10));
}
@Override
@SuppressLint({"MissingSuperCall"})
public void onBackPressed() {
if (this.X) {
this.X = false;
finish();
return;
}
Toast.makeText(getBaseContext(), "Press again to Exit", 0).show();
if (this.U.size() < 200) {
this.W.getRecyclerView().smoothScrollToPosition(0);
} else {
this.W.getRecyclerView().scrollToPosition(0);
}
this.X = true;
new Handler().postDelayed(new h(this, 1), 1600L);
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(App.D ? R.layout.activity_animes_list : R.layout.activity_animes_list_light);
this.S = (RelativeLayout) findViewById(R.id.activity_player);
MaterialSearchView materialSearchView = (MaterialSearchView) findViewById(R.id.search_view);
this.D = materialSearchView;
final int i10 = 1;
final int i11 = 0;
if (materialSearchView != null) {
materialSearchView.setShouldKeepHistory(false);
this.D.setTintAlpha(1);
this.D.setOnQueryTextListener(new a());
this.D.setOnItemClickListener(new v9.f(this, i11));
}
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
if (toolbar != null) {
setSupportActionBar(toolbar);
getSupportActionBar().setTitle(getString(R.string.anime_label));
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}
this.P = (ImageView) findViewById(R.id.filter_anime_button_imageview);
this.O = (ImageView) findViewById(R.id.search_anime_button_imageview);
this.N = (ImageView) findViewById(R.id.progress_anime_button_image);
this.M = (ImageView) findViewById(R.id.anime_fav_textview_button_imageview);
this.L = (TextView) findViewById(R.id.anime_fav_textview);
this.K = (TextView) findViewById(R.id.progress_anime_textview);
this.I = (TextView) findViewById(R.id.filter_anime__textview);
this.J = (TextView) findViewById(R.id.search_anime__textview);
this.H = (RelativeLayout) findViewById(R.id.filter_anime_button);
this.G = (RelativeLayout) findViewById(R.id.search_anime_button);
this.F = (RelativeLayout) findViewById(R.id.anime_history_button);
this.E = (RelativeLayout) findViewById(R.id.anime_favorites);
this.W = (SuperRecyclerView) findViewById(R.id.recyclerview);
final int i12 = 3;
final int i13 = 2;
if (this.H != null) {
this.G.setOnClickListener(new View.OnClickListener(this) {
public final AnimesListActivity f18877g;
{
this.f18877g = this;
}
@Override
public final void onClick(View view) {
int i14 = i11;
AnimesListActivity animesListActivity = this.f18877g;
switch (i14) {
case 0:
int i15 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimeSearchResultActivty.class));
return;
case 1:
int i16 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimesFavoritesAcvivity.class));
return;
case 2:
int i17 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimeHistoryActivity.class));
return;
default:
int i18 = AnimesListActivity.Y;
try {
fb.c.newInstance(false, animesListActivity).show(animesListActivity.getFragmentManager(), "");
return;
} catch (Exception e10) {
e10.printStackTrace();
return;
}
}
}
});
this.E.setOnClickListener(new View.OnClickListener(this) {
public final AnimesListActivity f18877g;
{
this.f18877g = this;
}
@Override
public final void onClick(View view) {
int i14 = i10;
AnimesListActivity animesListActivity = this.f18877g;
switch (i14) {
case 0:
int i15 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimeSearchResultActivty.class));
return;
case 1:
int i16 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimesFavoritesAcvivity.class));
return;
case 2:
int i17 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimeHistoryActivity.class));
return;
default:
int i18 = AnimesListActivity.Y;
try {
fb.c.newInstance(false, animesListActivity).show(animesListActivity.getFragmentManager(), "");
return;
} catch (Exception e10) {
e10.printStackTrace();
return;
}
}
}
});
this.F.setOnClickListener(new View.OnClickListener(this) {
public final AnimesListActivity f18877g;
{
this.f18877g = this;
}
@Override
public final void onClick(View view) {
int i14 = i13;
AnimesListActivity animesListActivity = this.f18877g;
switch (i14) {
case 0:
int i15 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimeSearchResultActivty.class));
return;
case 1:
int i16 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimesFavoritesAcvivity.class));
return;
case 2:
int i17 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimeHistoryActivity.class));
return;
default:
int i18 = AnimesListActivity.Y;
try {
fb.c.newInstance(false, animesListActivity).show(animesListActivity.getFragmentManager(), "");
return;
} catch (Exception e10) {
e10.printStackTrace();
return;
}
}
}
});
this.H.setOnClickListener(new View.OnClickListener(this) {
public final AnimesListActivity f18877g;
{
this.f18877g = this;
}
@Override
public final void onClick(View view) {
int i14 = i12;
AnimesListActivity animesListActivity = this.f18877g;
switch (i14) {
case 0:
int i15 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimeSearchResultActivty.class));
return;
case 1:
int i16 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimesFavoritesAcvivity.class));
return;
case 2:
int i17 = AnimesListActivity.Y;
animesListActivity.getClass();
animesListActivity.startActivity(new Intent(animesListActivity, (Class<?>) AnimeHistoryActivity.class));
return;
default:
int i18 = AnimesListActivity.Y;
try {
fb.c.newInstance(false, animesListActivity).show(animesListActivity.getFragmentManager(), "");
return;
} catch (Exception e10) {
e10.printStackTrace();
return;
}
}
}
});
}
RelativeLayout relativeLayout = this.H;
if (relativeLayout != null) {
relativeLayout.setOnFocusChangeListener(new View.OnFocusChangeListener(this) {
public final AnimesListActivity f18884g;
{
this.f18884g = this;
}
@Override
public final void onFocusChange(View view, boolean z10) {
int i14 = i11;
AnimesListActivity animesListActivity = this.f18884g;
switch (i14) {
case 0:
if (z10) {
animesListActivity.P.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.I.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.H.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.H.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.P.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.I.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.H.animate().scaleX(1.0f).start();
animesListActivity.H.animate().scaleY(1.0f).start();
return;
case 1:
if (z10) {
animesListActivity.M.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.L.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.E.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.E.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.M.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.L.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.E.animate().scaleX(1.0f).start();
animesListActivity.E.animate().scaleY(1.0f).start();
return;
case 2:
if (z10) {
animesListActivity.N.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.K.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.F.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.F.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.N.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.K.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.F.animate().scaleX(1.0f).start();
animesListActivity.F.animate().scaleY(1.0f).start();
return;
default:
if (z10) {
animesListActivity.O.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.J.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.G.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.G.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.O.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.J.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.G.animate().scaleX(1.0f).start();
animesListActivity.G.animate().scaleY(1.0f).start();
return;
}
}
});
}
RelativeLayout relativeLayout2 = this.E;
if (relativeLayout2 != null) {
relativeLayout2.setOnFocusChangeListener(new View.OnFocusChangeListener(this) {
public final AnimesListActivity f18884g;
{
this.f18884g = this;
}
@Override
public final void onFocusChange(View view, boolean z10) {
int i14 = i10;
AnimesListActivity animesListActivity = this.f18884g;
switch (i14) {
case 0:
if (z10) {
animesListActivity.P.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.I.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.H.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.H.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.P.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.I.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.H.animate().scaleX(1.0f).start();
animesListActivity.H.animate().scaleY(1.0f).start();
return;
case 1:
if (z10) {
animesListActivity.M.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.L.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.E.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.E.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.M.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.L.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.E.animate().scaleX(1.0f).start();
animesListActivity.E.animate().scaleY(1.0f).start();
return;
case 2:
if (z10) {
animesListActivity.N.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.K.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.F.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.F.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.N.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.K.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.F.animate().scaleX(1.0f).start();
animesListActivity.F.animate().scaleY(1.0f).start();
return;
default:
if (z10) {
animesListActivity.O.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.J.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.G.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.G.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.O.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.J.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.G.animate().scaleX(1.0f).start();
animesListActivity.G.animate().scaleY(1.0f).start();
return;
}
}
});
}
RelativeLayout relativeLayout3 = this.F;
if (relativeLayout3 != null) {
relativeLayout3.setOnFocusChangeListener(new View.OnFocusChangeListener(this) {
public final AnimesListActivity f18884g;
{
this.f18884g = this;
}
@Override
public final void onFocusChange(View view, boolean z10) {
int i14 = i13;
AnimesListActivity animesListActivity = this.f18884g;
switch (i14) {
case 0:
if (z10) {
animesListActivity.P.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.I.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.H.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.H.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.P.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.I.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.H.animate().scaleX(1.0f).start();
animesListActivity.H.animate().scaleY(1.0f).start();
return;
case 1:
if (z10) {
animesListActivity.M.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.L.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.E.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.E.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.M.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.L.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.E.animate().scaleX(1.0f).start();
animesListActivity.E.animate().scaleY(1.0f).start();
return;
case 2:
if (z10) {
animesListActivity.N.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.K.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.F.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.F.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.N.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.K.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.F.animate().scaleX(1.0f).start();
animesListActivity.F.animate().scaleY(1.0f).start();
return;
default:
if (z10) {
animesListActivity.O.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.J.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.G.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.G.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.O.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.J.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.G.animate().scaleX(1.0f).start();
animesListActivity.G.animate().scaleY(1.0f).start();
return;
}
}
});
}
RelativeLayout relativeLayout4 = this.G;
if (relativeLayout4 != null) {
relativeLayout4.setOnFocusChangeListener(new View.OnFocusChangeListener(this) {
public final AnimesListActivity f18884g;
{
this.f18884g = this;
}
@Override
public final void onFocusChange(View view, boolean z10) {
int i14 = i12;
AnimesListActivity animesListActivity = this.f18884g;
switch (i14) {
case 0:
if (z10) {
animesListActivity.P.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.I.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.H.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.H.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.P.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.I.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.H.animate().scaleX(1.0f).start();
animesListActivity.H.animate().scaleY(1.0f).start();
return;
case 1:
if (z10) {
animesListActivity.M.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.L.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.E.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.E.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.M.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.L.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.E.animate().scaleX(1.0f).start();
animesListActivity.E.animate().scaleY(1.0f).start();
return;
case 2:
if (z10) {
animesListActivity.N.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.K.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.F.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.F.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.N.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.K.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.F.animate().scaleX(1.0f).start();
animesListActivity.F.animate().scaleY(1.0f).start();
return;
default:
if (z10) {
animesListActivity.O.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.black), PorterDuff.Mode.SRC_IN));
animesListActivity.J.setTextColor(animesListActivity.getResources().getColor(R.color.black));
animesListActivity.G.animate().setDuration(100L).scaleX(1.03f).start();
animesListActivity.G.animate().setDuration(100L).scaleY(1.03f).start();
return;
}
animesListActivity.O.setColorFilter(new PorterDuffColorFilter(y.a.getColor(animesListActivity, R.color.white), PorterDuff.Mode.SRC_IN));
animesListActivity.J.setTextColor(animesListActivity.getResources().getColor(R.color.white));
animesListActivity.G.animate().scaleX(1.0f).start();
animesListActivity.G.animate().scaleY(1.0f).start();
return;
}
}
});
}
this.W.setRefreshListener(new g(this));
this.U = new ArrayList<>();
this.V = new f(getBaseContext(), this.U, this, this.R, this);
this.W.setLayoutManager(new CenterGridLayoutManager(this, Math.round((o.a.a(getWindowManager().getDefaultDisplay()).widthPixels / getResources().getDisplayMetrics().density) / 140)));
this.W.addItemDecoration(new c(12));
this.W.setAdapter(this.V);
this.W.setupMoreListener(new g(this), 10);
this.W.requestFocus();
d(this.Q);
new Handler().postDelayed(new h(this, 0), 800L);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.anime_menu, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem menuItem) {
int itemId = menuItem.getItemId();
if (itemId == R.id.action_search) {
this.D.openSearch();
} else if (itemId == R.id.action_filter) {
try {
fb.c.newInstance(false, this).show(getFragmentManager(), "");
} catch (Exception e10) {
e10.printStackTrace();
}
} else if (itemId == 16908332) {
finish();
} else if (itemId == R.id.action_favorites_anime) {
startActivity(new Intent(this, (Class<?>) AnimesFavoritesAcvivity.class));
} else if (itemId == R.id.action_history_anime) {
startActivity(new Intent(this, (Class<?>) AnimeHistoryActivity.class));
}
return super.onOptionsItemSelected(menuItem);
}
@Override
public void onResume() {
super.onResume();
}
@Override
public void openAnime(Anime anime) {
Intent intent = new Intent(this, (Class<?>) AnimeDetailActivity.class);
String str = anime.f12370h;
if (str.toLowerCase().contains("(dub)")) {
str = str.toLowerCase().replace("(dub)", "").trim();
}
if (str.toLowerCase().contains("(sub)")) {
str = str.toLowerCase().replace("(sub)", "").trim();
}
if (str.toLowerCase().endsWith(")")) {
String substring = str.substring(str.length() - 6);
str.replace(substring, "").getClass();
anime.f12368b = substring.replace("(", "").replace(")", "");
}
String str2 = anime.f12368b;
if (str2 != null && str2.length() == 4) {
anime.f12370h = anime.f12370h.replace("(" + anime.f12368b + ")", "");
}
intent.putExtra("anime", anime);
intent.setFlags(268435456);
startActivity(intent);
}
}