FLIX VISION v2.8.2版本的 MD5 值为:4c8f04d6db90386313134c0796491235
以下内容为反编译后的 e.java 源代码,内容仅作参考
package y9;
import android.app.FragmentManager;
import android.content.Intent;
import android.net.Uri;
import android.os.Handler;
import android.view.View;
import d.y;
import flix.com.vision.App;
import flix.com.vision.R;
import flix.com.vision.activities.DonationActvity;
import flix.com.vision.activities.TraktActivity;
import flix.com.vision.activities.TraktSignInActivity;
import flix.com.vision.activities.WatchedAcvivity;
import flix.com.vision.activities.leanback.MainActivityLeanback;
import flix.com.vision.filepickerlibrary.FilePickerActivity;
import flix.com.vision.filepickerlibrary.enums.Request;
import flix.com.vision.filepickerlibrary.enums.ThemeType;
import flix.com.vision.tv.M3UImportActivity;
import flix.com.vision.tv.MyImportActivity;
import v9.a0;
import v9.h0;
public final class e implements View.OnClickListener {
public final int f20660b;
public final MainActivityLeanback f20661g;
public e(MainActivityLeanback mainActivityLeanback, int i10) {
this.f20660b = i10;
this.f20661g = mainActivityLeanback;
}
@Override
public final void onClick(View view) {
int i10 = this.f20660b;
MainActivityLeanback mainActivityLeanback = this.f20661g;
switch (i10) {
case 0:
int i11 = MainActivityLeanback.Z;
mainActivityLeanback.finish();
return;
case 1:
int i12 = MainActivityLeanback.Z;
FragmentManager fragmentManager = mainActivityLeanback.getFragmentManager();
la.d newInstance = la.d.newInstance(mainActivityLeanback, false);
newInstance.setloading();
try {
newInstance.show(fragmentManager, "");
} catch (Exception e10) {
e10.printStackTrace();
}
App.getInstance().loadRemoteConfig();
new Handler().postDelayed(new y(14, mainActivityLeanback, newInstance), 5000L);
return;
case 2:
int i13 = MainActivityLeanback.Z;
mainActivityLeanback.getClass();
if (App.getInstance().f11731p.getWatchedMoviesFromDb().size() == 0) {
cc.d.makeToast(mainActivityLeanback, "No Item Marked As Watched Yet", false);
return;
} else {
mainActivityLeanback.startActivity(new Intent(mainActivityLeanback, (Class<?>) WatchedAcvivity.class));
mainActivityLeanback.e(true);
return;
}
case 3:
int i14 = MainActivityLeanback.Z;
FragmentManager fragmentManager2 = mainActivityLeanback.getFragmentManager();
la.d newInstance2 = la.d.newInstance(mainActivityLeanback, true);
newInstance2.setTitle("Get in touch");
newInstance2.setMessage("Report issue and suggestions at info@flixvision.tv");
newInstance2.setButton1("OK", new h0(newInstance2, 8));
newInstance2.setButton2("OPEN MAIL APP", new a0(mainActivityLeanback, newInstance2, fragmentManager2, 2));
try {
newInstance2.show(fragmentManager2, "");
return;
} catch (Exception e11) {
e11.printStackTrace();
return;
}
case 4:
int i15 = MainActivityLeanback.Z;
mainActivityLeanback.getClass();
if (App.getInstance().f11732q.getBoolean("trakt_user_logged_in", false)) {
mainActivityLeanback.startActivity(new Intent(mainActivityLeanback, (Class<?>) TraktActivity.class));
return;
}
FragmentManager fragmentManager3 = mainActivityLeanback.getFragmentManager();
la.d newInstance3 = la.d.newInstance(mainActivityLeanback, false);
newInstance3.setTitle(mainActivityLeanback.getString(R.string.trakt_tv_label));
newInstance3.setCancelable(false);
newInstance3.setMessage(mainActivityLeanback.getString(R.string.connect_with_trakt_tv_enjoy_benefits_mess));
newInstance3.setButton1("CANCEL", new v9.y(14));
newInstance3.setButton2(mainActivityLeanback.getString(R.string.action_sign_in), new e(mainActivityLeanback, 11));
try {
newInstance3.show(fragmentManager3, "");
return;
} catch (Exception e12) {
e12.printStackTrace();
return;
}
case 5:
int i16 = MainActivityLeanback.Z;
mainActivityLeanback.getClass();
mainActivityLeanback.startActivity(new Intent(mainActivityLeanback, (Class<?>) DonationActvity.class));
return;
case 6:
int i17 = MainActivityLeanback.Z;
FragmentManager fragmentManager4 = mainActivityLeanback.getFragmentManager();
la.d newInstance4 = la.d.newInstance(mainActivityLeanback, true);
newInstance4.setTitle("M3U Import");
newInstance4.setMessage("How do you want to import your M3U Playlist?");
newInstance4.setButton2("From File", new e(mainActivityLeanback, 9));
newInstance4.setButton1("From URL", new e(mainActivityLeanback, 10));
try {
newInstance4.show(fragmentManager4, "");
return;
} catch (Exception e13) {
e13.printStackTrace();
return;
}
case 7:
int i18 = MainActivityLeanback.Z;
mainActivityLeanback.getClass();
mainActivityLeanback.startActivity(new Intent(mainActivityLeanback, (Class<?>) MyImportActivity.class));
return;
case 8:
int i19 = MainActivityLeanback.Z;
mainActivityLeanback.getClass();
new Handler().postDelayed(new d(mainActivityLeanback, 3), 1000L);
return;
case 9:
int i20 = MainActivityLeanback.Z;
mainActivityLeanback.getClass();
try {
if (y.a.checkSelfPermission(mainActivityLeanback, "android.permission.WRITE_EXTERNAL_STORAGE") == -1) {
x.a.requestPermissions(mainActivityLeanback, new String[]{"android.permission.READ_EXTERNAL_STORAGE", "android.permission.WRITE_EXTERNAL_STORAGE"}, 1000);
return;
}
} catch (Exception e14) {
e14.printStackTrace();
}
Intent intent = new Intent(mainActivityLeanback, (Class<?>) FilePickerActivity.class);
intent.putExtra("themeType", ThemeType.DIALOG);
intent.putExtra("request", Request.FILE);
mainActivityLeanback.startActivityForResult(intent, 12345);
return;
case 10:
int i21 = MainActivityLeanback.Z;
mainActivityLeanback.getClass();
mainActivityLeanback.startActivity(new Intent(mainActivityLeanback, (Class<?>) M3UImportActivity.class));
return;
case 11:
int i22 = MainActivityLeanback.Z;
mainActivityLeanback.getClass();
mainActivityLeanback.startActivity(new Intent(mainActivityLeanback, (Class<?>) TraktSignInActivity.class));
return;
default:
int i23 = MainActivityLeanback.Z;
mainActivityLeanback.getClass();
mainActivityLeanback.startActivityForResult(new Intent("android.settings.MANAGE_UNKNOWN_APP_SOURCES", Uri.parse("package:flix.com.vision")), 2000);
return;
}
}
}