正在查看: Your TV v2.0.2 应用的 C0088j2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Your TV v2.0.2 应用的 C0088j2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package G0;
import android.app.Dialog;
import android.app.UiModeManager;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.CompoundButton;
import android.widget.LinearLayout;
import android.widget.Toast;
import androidx.appcompat.widget.AppCompatButton;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.appcompat.widget.SwitchCompat;
import androidx.fragment.app.C0200a;
import androidx.lifecycle.EnumC0247s;
import androidx.media3.exoplayer.ExoPlayer;
import com.horsenma.yourtv.MainActivity;
import com.horsenma.yourtv.TbsDebugActivity;
import com.horsenma.yourtv.YourTVApplication;
import com.horsenma.yourtv.data.TV;
import com.horsenma.yourtv.databinding.SettingBinding;
import com.tencent.smtt.sdk.CookieManager;
import com.tencent.smtt.sdk.TbsDownloader;
import com.tencent.smtt.sdk.TbsVideoCacheTask;
import com.tencent.smtt.sdk.WebStorage;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.Enumeration;
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
import kotlinx.coroutines.Dispatchers;
public final class C0088j2 extends androidx.fragment.app.H {
public SettingBinding f1197a;
public C0138t3 f1198b;
public final String f1199c;
public C0054d1 f1200d;
public final Handler f1201e;
public C0088j2() {
String str;
Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();
loop0: while (true) {
if (!networkInterfaces.hasMoreElements()) {
str = null;
break;
}
Enumeration<InetAddress> inetAddresses = networkInterfaces.nextElement().getInetAddresses();
while (inetAddresses.hasMoreElements()) {
InetAddress nextElement = inetAddresses.nextElement();
if (nextElement instanceof Inet4Address) {
Inet4Address inet4Address = (Inet4Address) nextElement;
if (!kotlin.jvm.internal.j.a(inet4Address.getHostAddress(), "127.0.0.1")) {
str = inet4Address.getHostAddress();
break loop0;
}
}
}
}
this.f1199c = A.g.o("http://", str, ":34567");
this.f1201e = new Handler(Looper.getMainLooper());
}
public final void g() {
androidx.fragment.app.h0 p2 = requireActivity().p();
p2.getClass();
C0200a c0200a = new C0200a(p2);
c0200a.i(this);
c0200a.e(true, true);
androidx.fragment.app.M activity = getActivity();
kotlin.jvm.internal.j.c(activity, "null cannot be cast to non-null type com.horsenma.yourtv.MainActivity");
((MainActivity) activity).G();
}
public final void h(int i2) {
Toast.makeText(requireContext(), i2, 0).show();
}
@Override
public final void onActivityResult(int i2, int i3, Intent intent) {
boolean canRequestPackageInstalls;
super.onActivityResult(i2, i3, intent);
if (i2 == 2) {
if (Build.VERSION.SDK_INT >= 26) {
canRequestPackageInstalls = requireContext().getPackageManager().canRequestPackageInstalls();
if (canRequestPackageInstalls) {
try {
C0138t3 c0138t3 = this.f1198b;
if (c0138t3 != null) {
c0138t3.b();
return;
} else {
kotlin.jvm.internal.j.i("updateManager");
throw null;
}
} catch (Exception e2) {
e2.getMessage();
Toast.makeText(requireContext(), 2131820803, 0).show();
return;
}
}
}
Toast.makeText(requireContext(), 2131820635, 0).show();
}
}
@Override
public final View onCreateView(LayoutInflater inflater, ViewGroup viewGroup, Bundle bundle) {
kotlin.jvm.internal.j.e(inflater, "inflater");
SettingBinding inflate = SettingBinding.inflate(inflater, viewGroup, false);
this.f1197a = inflate;
kotlin.jvm.internal.j.b(inflate);
LinearLayout root = inflate.getRoot();
kotlin.jvm.internal.j.d(root, "getRoot(...)");
return root;
}
@Override
public final void onDestroyView() {
super.onDestroyView();
this.f1201e.postDelayed(new V1(this, 2), 5000L);
this.f1197a = null;
}
@Override
public final void onHiddenChanged(boolean z2) {
View view;
super.onHiddenChanged(z2);
if (z2 || (view = getView()) == null) {
return;
}
view.post(new V1(this, 0));
}
@Override
public final void onRequestPermissionsResult(int i2, String[] permissions, int[] grantResults) {
kotlin.jvm.internal.j.e(permissions, "permissions");
kotlin.jvm.internal.j.e(grantResults, "grantResults");
super.onRequestPermissionsResult(i2, permissions, grantResults);
if (i2 == 1) {
for (int i3 : grantResults) {
if (i3 != 0) {
Toast.makeText(requireContext(), 2131820579, 0).show();
return;
}
}
return;
}
if (i2 != 100) {
return;
}
if (grantResults.length == 0 || grantResults[0] != 0) {
Toast.makeText(requireContext(), 2131820707, 1).show();
return;
}
try {
C0138t3 c0138t3 = this.f1198b;
if (c0138t3 == null) {
kotlin.jvm.internal.j.i("updateManager");
throw null;
}
c0138t3.b();
} catch (Exception e2) {
e2.getMessage();
Toast.makeText(requireContext(), 2131820803, 0).show();
}
}
@Override
public final void onViewCreated(View view, Bundle bundle) {
char c2;
final int i2 = 6;
final int i3 = 5;
final int i4 = 3;
final int i5 = 4;
final int i6 = 2;
final int i7 = 0;
final int i8 = 1;
kotlin.jvm.internal.j.e(view, "view");
super.onViewCreated(view, bundle);
final androidx.fragment.app.M requireActivity = requireActivity();
kotlin.jvm.internal.j.d(requireActivity, "requireActivity(...)");
androidx.fragment.app.M activity = getActivity();
kotlin.jvm.internal.j.c(activity, "null cannot be cast to non-null type com.horsenma.yourtv.MainActivity");
final MainActivity mainActivity = (MainActivity) activity;
Context applicationContext = requireActivity.getApplicationContext();
kotlin.jvm.internal.j.c(applicationContext, "null cannot be cast to non-null type com.horsenma.yourtv.YourTVApplication");
YourTVApplication yourTVApplication = (YourTVApplication) applicationContext;
if (yourTVApplication.f3904m == null) {
kotlin.jvm.internal.j.i("imageHelper");
throw null;
}
this.f1200d = (C0054d1) new androidx.lifecycle.d0(requireActivity).a(C0054d1.class);
SettingBinding settingBinding = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding);
settingBinding.switchDisplaySeconds.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener(this) {
public final C0088j2 f850b;
{
this.f850b = this;
}
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) {
switch (i8) {
case 0:
C0088j2 this$0 = this.f850b;
kotlin.jvm.internal.j.e(this$0, "this$0");
if (z2) {
this$0.requireActivity().finishAffinity();
return;
}
return;
default:
C0054d1 c0054d1 = this.f850b.f1200d;
if (c0054d1 == null) {
kotlin.jvm.internal.j.i("viewModel");
throw null;
}
c0054d1.f1065e = z2 ? "HH:mm:ss" : "HH:mm";
SharedPreferences sharedPreferences = N1.f803c;
if (sharedPreferences != null) {
A.g.v(sharedPreferences, "display_seconds", z2);
return;
} else {
kotlin.jvm.internal.j.i("sp");
throw null;
}
}
}
});
SettingBinding settingBinding2 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding2);
settingBinding2.versionName.setText("v".concat(b.b.x(requireActivity)));
SettingBinding settingBinding3 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding3);
settingBinding3.version.setText(requireContext().getString(2131820752));
SettingBinding settingBinding4 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding4);
settingBinding4.version.setFocusable(true);
SettingBinding settingBinding5 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding5);
settingBinding5.version.setFocusableInTouchMode(true);
SettingBinding settingBinding6 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding6);
settingBinding6.version.setOnClickListener(new View.OnClickListener(this) {
public final C0088j2 f886b;
{
this.f886b = this;
}
@Override
public final void onClick(View view2) {
final C0088j2 this$0 = this.f886b;
switch (i7) {
case 0:
kotlin.jvm.internal.j.e(this$0, "this$0");
String string = this$0.requireContext().getString(2131820753);
kotlin.jvm.internal.j.d(string, "getString(...)");
try {
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(string));
intent.addCategory("android.intent.category.BROWSABLE");
this$0.startActivity(intent);
return;
} catch (ActivityNotFoundException unused) {
this$0.h(2131820734);
SettingBinding settingBinding7 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding7);
settingBinding7.version.requestFocus();
return;
} catch (Exception unused2) {
this$0.h(2131820734);
SettingBinding settingBinding8 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding8);
settingBinding8.version.requestFocus();
return;
}
case 1:
kotlin.jvm.internal.j.e(this$0, "this$0");
this$0.g();
androidx.fragment.app.M activity2 = this$0.getActivity();
MainActivity mainActivity2 = activity2 instanceof MainActivity ? (MainActivity) activity2 : null;
if (mainActivity2 != null) {
mainActivity2.C();
return;
}
return;
default:
androidx.fragment.app.M activity3 = this$0.getActivity();
final MainActivity mainActivity3 = activity3 instanceof MainActivity ? (MainActivity) activity3 : null;
final Dialog dialog = new Dialog(this$0.requireContext());
dialog.setContentView(2131558451);
dialog.setCancelable(true);
Window window = dialog.getWindow();
if (window != null) {
window.setBackgroundDrawable(new ColorDrawable(0));
}
Window window2 = dialog.getWindow();
if (window2 != null) {
window2.setLayout(-2, -2);
}
final C0083i2 c0083i2 = new C0083i2(this$0, mainActivity3);
dialog.setOnShowListener(new DialogInterface.OnShowListener() {
@Override
public final void onShow(DialogInterface dialogInterface) {
Dialog dialog2 = dialog;
C0088j2 c0088j2 = this$0;
C0083i2 c0083i22 = c0083i2;
View findViewById = dialog2.findViewById(2131362063);
MainActivity mainActivity4 = mainActivity3;
if (findViewById != null) {
findViewById.setOnTouchListener(new ViewOnTouchListenerC0102m1(mainActivity4, 2));
}
View findViewById2 = dialog2.findViewById(2131361916);
if (findViewById2 != null) {
findViewById2.setOnClickListener(new ViewOnClickListenerC0061e2(mainActivity4, c0088j2, dialog2, c0083i22, 0));
}
View findViewById3 = dialog2.findViewById(2131362155);
if (findViewById3 != null) {
findViewById3.setOnClickListener(new ViewOnClickListenerC0061e2(mainActivity4, c0088j2, dialog2, c0083i22, 1));
}
}
});
try {
dialog.show();
if (mainActivity3 == null) {
this$0.h(2131820806);
dialog.dismiss();
return;
}
C3 c3 = C3.f575a;
C0054d1 c0054d1 = this$0.f1200d;
if (c0054d1 == null) {
kotlin.jvm.internal.j.i("viewModel");
throw null;
}
h4 h4Var = new h4(mainActivity3, c0054d1);
if (mainActivity3.f336a.f2734d.compareTo(EnumC0247s.f2824d) >= 0) {
BuildersKt__Builders_commonKt.launch$default(androidx.lifecycle.V.e(mainActivity3), Dispatchers.getMain(), null, new C0057d4(h4Var, dialog, c0083i2, null), 2, null);
return;
} else {
c0083i2.a();
return;
}
} catch (Exception e2) {
e2.getMessage();
this$0.h(2131820806);
return;
}
}
}
});
SettingBinding settingBinding7 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding7);
settingBinding7.version.setOnFocusChangeListener(new View.OnFocusChangeListener(this) {
public final C0088j2 f942b;
{
this.f942b = this;
}
@Override
public final void onFocusChange(View view2, boolean z2) {
switch (i7) {
case 0:
C0088j2 this$0 = this.f942b;
kotlin.jvm.internal.j.e(this$0, "this$0");
androidx.fragment.app.M context = requireActivity;
kotlin.jvm.internal.j.e(context, "$context");
if (!z2) {
SettingBinding settingBinding8 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding8);
settingBinding8.version.setBackground(new ColorDrawable(context.getColor(2131099695)));
SettingBinding settingBinding9 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding9);
settingBinding9.version.setTextColor(context.getColor(2131099682));
break;
} else {
SettingBinding settingBinding10 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding10);
settingBinding10.version.setBackground(new ColorDrawable(context.getColor(2131099710)));
SettingBinding settingBinding11 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding11);
settingBinding11.version.setTextColor(context.getColor(2131099762));
break;
}
default:
C0088j2 this$02 = this.f942b;
kotlin.jvm.internal.j.e(this$02, "this$0");
androidx.fragment.app.M context2 = requireActivity;
kotlin.jvm.internal.j.e(context2, "$context");
SettingBinding settingBinding12 = this$02.f1197a;
kotlin.jvm.internal.j.b(settingBinding12);
settingBinding12.name.setTextColor(context2.getColor(z2 ? 2131099710 : 2131099756));
break;
}
}
});
SettingBinding settingBinding8 = this.f1197a;
SwitchCompat switchCompat = settingBinding8 != null ? settingBinding8.switchChannelReversal : null;
if (switchCompat != null) {
switchCompat.setChecked(N1.c());
}
if (switchCompat != null) {
switchCompat.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) {
switch (i8) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences = N1.f803c;
if (sharedPreferences == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences.edit();
edit.putBoolean("show_progress_bar", z2);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z2);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences2 = N1.f803c;
if (sharedPreferences2 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences2.edit();
edit2.putBoolean("channel_reversal", z2);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences3 = N1.f803c;
if (sharedPreferences3 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences3.edit();
edit3.putBoolean("channel_num", z2);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z2);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences4 = N1.f803c;
if (sharedPreferences4 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences4.edit();
edit4.putBoolean("boot_startup", z2);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences5 = N1.f803c;
if (sharedPreferences5 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences5.edit();
edit5.putBoolean("repeat_info", z2);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z2);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z2);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z2) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z2);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z2);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z2);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z2);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
}
SettingBinding settingBinding9 = this.f1197a;
SwitchCompat switchCompat2 = settingBinding9 != null ? settingBinding9.switchChannelNum : null;
if (switchCompat2 != null) {
switchCompat2.setChecked(N1.b());
}
if (switchCompat2 != null) {
switchCompat2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) {
switch (i6) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences = N1.f803c;
if (sharedPreferences == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences.edit();
edit.putBoolean("show_progress_bar", z2);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z2);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences2 = N1.f803c;
if (sharedPreferences2 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences2.edit();
edit2.putBoolean("channel_reversal", z2);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences3 = N1.f803c;
if (sharedPreferences3 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences3.edit();
edit3.putBoolean("channel_num", z2);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z2);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences4 = N1.f803c;
if (sharedPreferences4 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences4.edit();
edit4.putBoolean("boot_startup", z2);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences5 = N1.f803c;
if (sharedPreferences5 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences5.edit();
edit5.putBoolean("repeat_info", z2);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z2);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z2);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z2) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z2);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z2);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z2);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z2);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
}
SettingBinding settingBinding10 = this.f1197a;
SwitchCompat switchCompat3 = settingBinding10 != null ? settingBinding10.switchTime : null;
if (switchCompat3 != null) {
SharedPreferences sharedPreferences = N1.f803c;
if (sharedPreferences == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
switchCompat3.setChecked(sharedPreferences.getBoolean("time", true));
}
if (switchCompat3 != null) {
switchCompat3.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) {
switch (i4) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences2 = N1.f803c;
if (sharedPreferences2 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences2.edit();
edit.putBoolean("show_progress_bar", z2);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z2);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences22 = N1.f803c;
if (sharedPreferences22 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences22.edit();
edit2.putBoolean("channel_reversal", z2);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences3 = N1.f803c;
if (sharedPreferences3 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences3.edit();
edit3.putBoolean("channel_num", z2);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z2);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences4 = N1.f803c;
if (sharedPreferences4 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences4.edit();
edit4.putBoolean("boot_startup", z2);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences5 = N1.f803c;
if (sharedPreferences5 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences5.edit();
edit5.putBoolean("repeat_info", z2);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z2);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z2);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z2) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z2);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z2);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z2);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z2);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
}
SettingBinding settingBinding11 = this.f1197a;
SwitchCompat switchCompat4 = settingBinding11 != null ? settingBinding11.switchBootStartup : null;
if (switchCompat4 != null) {
SharedPreferences sharedPreferences2 = N1.f803c;
if (sharedPreferences2 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
switchCompat4.setChecked(sharedPreferences2.getBoolean("boot_startup", false));
}
if (switchCompat4 != null) {
switchCompat4.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) {
switch (i5) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences22 = N1.f803c;
if (sharedPreferences22 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences22.edit();
edit.putBoolean("show_progress_bar", z2);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z2);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences222 = N1.f803c;
if (sharedPreferences222 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences222.edit();
edit2.putBoolean("channel_reversal", z2);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences3 = N1.f803c;
if (sharedPreferences3 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences3.edit();
edit3.putBoolean("channel_num", z2);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z2);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences4 = N1.f803c;
if (sharedPreferences4 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences4.edit();
edit4.putBoolean("boot_startup", z2);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences5 = N1.f803c;
if (sharedPreferences5 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences5.edit();
edit5.putBoolean("repeat_info", z2);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z2);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z2);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z2) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z2);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z2);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z2);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z2);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
}
SettingBinding settingBinding12 = this.f1197a;
SwitchCompat switchCompat5 = settingBinding12 != null ? settingBinding12.switchRepeatInfo : null;
if (switchCompat5 != null) {
SharedPreferences sharedPreferences3 = N1.f803c;
if (sharedPreferences3 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
switchCompat5.setChecked(sharedPreferences3.getBoolean("repeat_info", true));
}
if (switchCompat5 != null) {
switchCompat5.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) {
switch (i3) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences22 = N1.f803c;
if (sharedPreferences22 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences22.edit();
edit.putBoolean("show_progress_bar", z2);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z2);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences222 = N1.f803c;
if (sharedPreferences222 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences222.edit();
edit2.putBoolean("channel_reversal", z2);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences32 = N1.f803c;
if (sharedPreferences32 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences32.edit();
edit3.putBoolean("channel_num", z2);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z2);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences4 = N1.f803c;
if (sharedPreferences4 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences4.edit();
edit4.putBoolean("boot_startup", z2);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences5 = N1.f803c;
if (sharedPreferences5 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences5.edit();
edit5.putBoolean("repeat_info", z2);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z2);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z2);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z2) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z2);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z2);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z2);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z2);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
}
SettingBinding settingBinding13 = this.f1197a;
SwitchCompat switchCompat6 = settingBinding13 != null ? settingBinding13.switchDefaultLike : null;
if (switchCompat6 != null) {
switchCompat6.setChecked(N1.e());
}
if (switchCompat6 != null) {
switchCompat6.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) {
switch (i2) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences22 = N1.f803c;
if (sharedPreferences22 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences22.edit();
edit.putBoolean("show_progress_bar", z2);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z2);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences222 = N1.f803c;
if (sharedPreferences222 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences222.edit();
edit2.putBoolean("channel_reversal", z2);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences32 = N1.f803c;
if (sharedPreferences32 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences32.edit();
edit3.putBoolean("channel_num", z2);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z2);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences4 = N1.f803c;
if (sharedPreferences4 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences4.edit();
edit4.putBoolean("boot_startup", z2);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences5 = N1.f803c;
if (sharedPreferences5 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences5.edit();
edit5.putBoolean("repeat_info", z2);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z2);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z2);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z2) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z2);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z2);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z2);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z2);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
}
SettingBinding settingBinding14 = this.f1197a;
SwitchCompat switchCompat7 = settingBinding14 != null ? settingBinding14.switchShowAllChannels : null;
if (switchCompat7 != null) {
switchCompat7.setChecked(N1.k());
}
SettingBinding settingBinding15 = this.f1197a;
SwitchCompat switchCompat8 = settingBinding15 != null ? settingBinding15.switchCompactMenu : null;
if (switchCompat8 != null) {
switchCompat8.setChecked(N1.d());
}
if (switchCompat8 != null) {
final int i9 = 7;
switchCompat8.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) {
switch (i9) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences22 = N1.f803c;
if (sharedPreferences22 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences22.edit();
edit.putBoolean("show_progress_bar", z2);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z2);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences222 = N1.f803c;
if (sharedPreferences222 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences222.edit();
edit2.putBoolean("channel_reversal", z2);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences32 = N1.f803c;
if (sharedPreferences32 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences32.edit();
edit3.putBoolean("channel_num", z2);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z2);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences4 = N1.f803c;
if (sharedPreferences4 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences4.edit();
edit4.putBoolean("boot_startup", z2);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences5 = N1.f803c;
if (sharedPreferences5 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences5.edit();
edit5.putBoolean("repeat_info", z2);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z2);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z2);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z2) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z2);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z2);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z2);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z2);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
}
SettingBinding settingBinding16 = this.f1197a;
SwitchCompat switchCompat9 = settingBinding16 != null ? settingBinding16.switchDisplaySeconds : null;
if (switchCompat9 != null) {
SharedPreferences sharedPreferences4 = N1.f803c;
if (sharedPreferences4 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
switchCompat9.setChecked(sharedPreferences4.getBoolean("display_seconds", true));
}
SettingBinding settingBinding17 = this.f1197a;
SwitchCompat switchCompat10 = settingBinding17 != null ? settingBinding17.switchSoftDecode : null;
if (switchCompat10 != null) {
switchCompat10.setChecked(N1.n());
}
if (switchCompat10 != null) {
final int i10 = 8;
switchCompat10.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) {
switch (i10) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences22 = N1.f803c;
if (sharedPreferences22 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences22.edit();
edit.putBoolean("show_progress_bar", z2);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z2);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences222 = N1.f803c;
if (sharedPreferences222 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences222.edit();
edit2.putBoolean("channel_reversal", z2);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences32 = N1.f803c;
if (sharedPreferences32 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences32.edit();
edit3.putBoolean("channel_num", z2);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z2);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences42 = N1.f803c;
if (sharedPreferences42 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences42.edit();
edit4.putBoolean("boot_startup", z2);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences5 = N1.f803c;
if (sharedPreferences5 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences5.edit();
edit5.putBoolean("repeat_info", z2);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z2);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z2);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z2) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z2);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z2);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z2);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z2);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
}
SettingBinding settingBinding18 = this.f1197a;
SwitchCompat switchCompat11 = settingBinding18 != null ? settingBinding18.switchAutoSwitchSource : null;
if (switchCompat11 != null) {
switchCompat11.setChecked(N1.a());
}
if (switchCompat11 != null) {
final int i11 = 9;
switchCompat11.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) {
switch (i11) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences22 = N1.f803c;
if (sharedPreferences22 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences22.edit();
edit.putBoolean("show_progress_bar", z2);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z2);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences222 = N1.f803c;
if (sharedPreferences222 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences222.edit();
edit2.putBoolean("channel_reversal", z2);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences32 = N1.f803c;
if (sharedPreferences32 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences32.edit();
edit3.putBoolean("channel_num", z2);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z2);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences42 = N1.f803c;
if (sharedPreferences42 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences42.edit();
edit4.putBoolean("boot_startup", z2);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences5 = N1.f803c;
if (sharedPreferences5 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences5.edit();
edit5.putBoolean("repeat_info", z2);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z2);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z2);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z2) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z2);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z2);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z2);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z2);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
}
PackageManager packageManager = requireActivity.getPackageManager();
Object systemService = requireActivity.getSystemService("uimode");
UiModeManager uiModeManager = systemService instanceof UiModeManager ? (UiModeManager) systemService : null;
boolean z2 = packageManager.hasSystemFeature("android.hardware.touchscreen") && !(uiModeManager != null && uiModeManager.getCurrentModeType() == 4);
SettingBinding settingBinding19 = this.f1197a;
SwitchCompat switchCompat12 = settingBinding19 != null ? settingBinding19.switchEnableScreenOffAudio : null;
if (switchCompat12 != null) {
switchCompat12.setChecked(N1.f());
}
if (switchCompat12 != null) {
switchCompat12.setVisibility(z2 ? 0 : 8);
}
if (switchCompat12 != null) {
c2 = 5;
final int i12 = 10;
switchCompat12.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z22) {
switch (i12) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences22 = N1.f803c;
if (sharedPreferences22 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences22.edit();
edit.putBoolean("show_progress_bar", z22);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z22);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences222 = N1.f803c;
if (sharedPreferences222 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences222.edit();
edit2.putBoolean("channel_reversal", z22);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences32 = N1.f803c;
if (sharedPreferences32 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences32.edit();
edit3.putBoolean("channel_num", z22);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z22);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences42 = N1.f803c;
if (sharedPreferences42 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences42.edit();
edit4.putBoolean("boot_startup", z22);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences5 = N1.f803c;
if (sharedPreferences5 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences5.edit();
edit5.putBoolean("repeat_info", z22);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z22);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z22);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z22) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z22);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z22);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z22);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z22);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
} else {
c2 = 5;
}
SettingBinding settingBinding20 = this.f1197a;
SwitchCompat switchCompat13 = settingBinding20 != null ? settingBinding20.switchFullScreenMode : null;
if (switchCompat13 != null) {
switchCompat13.setChecked(N1.h());
}
if (switchCompat13 != null) {
switchCompat13.setOnCheckedChangeListener(new Y1(mainActivity, requireActivity));
}
SettingBinding settingBinding21 = this.f1197a;
SwitchCompat switchCompat14 = settingBinding21 != null ? settingBinding21.switchAutoDownloadX5 : null;
if (switchCompat14 != null) {
switchCompat14.setVisibility(0);
}
if (switchCompat14 != null) {
SharedPreferences sharedPreferences5 = N1.f803c;
if (sharedPreferences5 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
switchCompat14.setChecked(sharedPreferences5.getBoolean("autoDownX5", false));
}
if (switchCompat14 != null) {
switchCompat14.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z3) {
androidx.fragment.app.M m2 = androidx.fragment.app.M.this;
C0088j2 c0088j2 = this;
MainActivity mainActivity2 = mainActivity;
N1.s(z3);
if (z3) {
YourTVApplication yourTVApplication2 = YourTVApplication.f3892p;
if (!android.support.v4.media.session.b.E().f3893a) {
Toast.makeText(m2, 2131820814, 1).show();
TbsDownloader.startDownload(c0088j2.requireContext());
}
}
mainActivity2.C();
}
});
}
SettingBinding settingBinding22 = this.f1197a;
SwitchCompat switchCompat15 = settingBinding22 != null ? settingBinding22.switchShowSourceButton : null;
if (switchCompat15 != null) {
switchCompat15.setChecked(N1.m());
}
if (switchCompat15 != null) {
switchCompat15.setVisibility(z2 ? 0 : 8);
}
if (switchCompat15 != null) {
final int i13 = 11;
switchCompat15.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z22) {
switch (i13) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences22 = N1.f803c;
if (sharedPreferences22 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences22.edit();
edit.putBoolean("show_progress_bar", z22);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z22);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences222 = N1.f803c;
if (sharedPreferences222 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences222.edit();
edit2.putBoolean("channel_reversal", z22);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences32 = N1.f803c;
if (sharedPreferences32 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences32.edit();
edit3.putBoolean("channel_num", z22);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z22);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences42 = N1.f803c;
if (sharedPreferences42 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences42.edit();
edit4.putBoolean("boot_startup", z22);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences52 = N1.f803c;
if (sharedPreferences52 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences52.edit();
edit5.putBoolean("repeat_info", z22);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z22);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z22);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z22) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z22);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z22);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z22);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z22);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
}
SettingBinding settingBinding23 = this.f1197a;
SwitchCompat switchCompat16 = settingBinding23 != null ? settingBinding23.switchShowProgressBar : null;
if (switchCompat16 != null) {
switchCompat16.setChecked(N1.l());
}
if (switchCompat16 != null) {
switchCompat16.setVisibility(0);
}
if (switchCompat16 != null) {
switchCompat16.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z22) {
switch (i7) {
case 0:
MainActivity mainActivity2 = mainActivity;
SharedPreferences sharedPreferences22 = N1.f803c;
if (sharedPreferences22 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences22.edit();
edit.putBoolean("show_progress_bar", z22);
edit.apply();
mainActivity2.C();
if (mainActivity2.f3857B.isAdded()) {
mainActivity2.f3857B.n(z22);
return;
}
return;
case 1:
MainActivity mainActivity3 = mainActivity;
SharedPreferences sharedPreferences222 = N1.f803c;
if (sharedPreferences222 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences222.edit();
edit2.putBoolean("channel_reversal", z22);
edit2.apply();
mainActivity3.C();
return;
case 2:
MainActivity mainActivity4 = mainActivity;
SharedPreferences sharedPreferences32 = N1.f803c;
if (sharedPreferences32 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit3 = sharedPreferences32.edit();
edit3.putBoolean("channel_num", z22);
edit3.apply();
mainActivity4.C();
return;
case 3:
MainActivity mainActivity5 = mainActivity;
N1.x(z22);
mainActivity5.C();
return;
case 4:
MainActivity mainActivity6 = mainActivity;
SharedPreferences sharedPreferences42 = N1.f803c;
if (sharedPreferences42 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit4 = sharedPreferences42.edit();
edit4.putBoolean("boot_startup", z22);
edit4.apply();
mainActivity6.C();
return;
case 5:
MainActivity mainActivity7 = mainActivity;
SharedPreferences sharedPreferences52 = N1.f803c;
if (sharedPreferences52 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit5 = sharedPreferences52.edit();
edit5.putBoolean("repeat_info", z22);
edit5.apply();
mainActivity7.C();
return;
case 6:
MainActivity mainActivity8 = mainActivity;
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit6 = sharedPreferences6.edit();
edit6.putBoolean("default_like", z22);
edit6.apply();
mainActivity8.C();
return;
case 7:
MainActivity mainActivity9 = mainActivity;
N1.t(z22);
C0131s1 c0131s1 = mainActivity9.f3863H;
View view2 = c0131s1.getView();
if (view2 != null) {
view2.post(new RunnableC0072g1(c0131s1, 6));
}
mainActivity9.C();
return;
case 8:
MainActivity mainActivity10 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity10, "$mainActivity");
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
if (sharedPreferences7.getBoolean("soft_decode", N1.f801a) != z22) {
SharedPreferences sharedPreferences8 = N1.f803c;
if (sharedPreferences8 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit7 = sharedPreferences8.edit();
edit7.putBoolean("soft_decode", z22);
edit7.commit();
}
if (mainActivity10.f3857B.isAdded() && !mainActivity10.f3857B.isHidden()) {
mainActivity10.f3857B.t();
}
mainActivity10.C();
return;
case 9:
MainActivity mainActivity11 = mainActivity;
SharedPreferences sharedPreferences9 = N1.f803c;
if (sharedPreferences9 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit8 = sharedPreferences9.edit();
edit8.putBoolean("auto_switch_source", z22);
edit8.apply();
mainActivity11.C();
return;
case 10:
MainActivity mainActivity12 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity12, "$mainActivity");
SharedPreferences sharedPreferences10 = N1.f803c;
if (sharedPreferences10 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit9 = sharedPreferences10.edit();
edit9.putBoolean("enable_screen_off_audio", z22);
edit9.apply();
mainActivity12.C();
return;
default:
MainActivity mainActivity13 = mainActivity;
SharedPreferences sharedPreferences11 = N1.f803c;
if (sharedPreferences11 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit10 = sharedPreferences11.edit();
edit10.putBoolean("show_source_button", z22);
edit10.apply();
mainActivity13.C();
if (mainActivity13.f3857B.isAdded()) {
mainActivity13.f3857B.o(true);
return;
}
return;
}
}
});
}
SettingBinding settingBinding24 = this.f1197a;
SwitchCompat switchCompat17 = settingBinding24 != null ? settingBinding24.switchExit : null;
if (switchCompat17 != null) {
switchCompat17.setChecked(false);
}
if (switchCompat17 != null) {
switchCompat17.setVisibility(0);
}
if (switchCompat17 != null) {
switchCompat17.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener(this) {
public final C0088j2 f850b;
{
this.f850b = this;
}
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z22) {
switch (i7) {
case 0:
C0088j2 this$0 = this.f850b;
kotlin.jvm.internal.j.e(this$0, "this$0");
if (z22) {
this$0.requireActivity().finishAffinity();
return;
}
return;
default:
C0054d1 c0054d1 = this.f850b.f1200d;
if (c0054d1 == null) {
kotlin.jvm.internal.j.i("viewModel");
throw null;
}
c0054d1.f1065e = z22 ? "HH:mm:ss" : "HH:mm";
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 != null) {
A.g.v(sharedPreferences6, "display_seconds", z22);
return;
} else {
kotlin.jvm.internal.j.i("sp");
throw null;
}
}
}
});
}
SettingBinding settingBinding25 = this.f1197a;
final SwitchCompat switchCompat18 = settingBinding25 != null ? settingBinding25.switchDownloadX5 : null;
if (switchCompat18 != null) {
switchCompat18.setVisibility(0);
}
if (switchCompat18 != null) {
switchCompat18.setChecked(N1.q());
}
if (switchCompat18 != null) {
switchCompat18.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z3) {
G1 g12;
TV m2;
C0088j2 c0088j2 = this;
androidx.fragment.app.M m3 = requireActivity;
MainActivity mainActivity2 = mainActivity;
YourTVApplication yourTVApplication2 = YourTVApplication.f3892p;
boolean z4 = android.support.v4.media.session.b.E().f3893a;
N1.q();
Handler handler = c0088j2.f1201e;
SwitchCompat switchCompat19 = SwitchCompat.this;
H0.b bVar = null;
if (z4) {
SharedPreferences sharedPreferences6 = N1.f803c;
if (sharedPreferences6 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit = sharedPreferences6.edit();
edit.putBoolean("user_x5_webview", z3);
edit.apply();
if (N1.q() != z3) {
N1.q();
Toast.makeText(m3, 2131820756, 1).show();
switchCompat19.setChecked(!z3);
return;
} else {
Toast.makeText(m3, 2131820809, 1).show();
if (z3) {
WebStorage.getInstance().deleteAllData();
CookieManager.getInstance().removeAllCookies(null);
} else {
android.webkit.WebStorage.getInstance().deleteAllData();
android.webkit.CookieManager.getInstance().removeAllCookies(null);
}
handler.postDelayed(new V1(c0088j2, 3), 500L);
}
} else {
SharedPreferences sharedPreferences7 = N1.f803c;
if (sharedPreferences7 == null) {
kotlin.jvm.internal.j.i("sp");
throw null;
}
SharedPreferences.Editor edit2 = sharedPreferences7.edit();
edit2.putBoolean("user_x5_webview", false);
edit2.apply();
switchCompat19.setChecked(false);
try {
androidx.fragment.app.M activity2 = c0088j2.getActivity();
MainActivity mainActivity3 = activity2 instanceof MainActivity ? (MainActivity) activity2 : null;
if (mainActivity3 != null && (g12 = mainActivity3.f3857B) != null && g12.isAdded()) {
I0.i iVar = g12.f650d;
if (iVar != null && (m2 = iVar.m()) != null) {
bVar = m2.d();
}
if (bVar == H0.b.WEBVIEW) {
androidx.fragment.app.H C2 = g12.getChildFragmentManager().C(2131362267);
if (C2 != null && (C2 instanceof w4)) {
((w4) C2).n();
I0.i iVar2 = g12.f650d;
if (iVar2 != null) {
iVar2.m();
}
}
} else {
ExoPlayer exoPlayer = g12.f649c;
if (exoPlayer != null) {
exoPlayer.pause();
I0.i iVar3 = g12.f650d;
if (iVar3 != null) {
iVar3.m();
}
}
}
androidx.fragment.app.h0 p2 = c0088j2.requireActivity().p();
p2.getClass();
C0200a c0200a = new C0200a(p2);
c0200a.i(g12);
c0200a.e(true, true);
g12.o(false);
}
Intent intent = new Intent(m3, (Class<?>) TbsDebugActivity.class);
intent.setFlags(268435456);
Toast.makeText(m3, 2131820818, 1).show();
c0088j2.startActivity(intent);
handler.post(new RunnableC0078h2(new kotlin.jvm.internal.r(), m3, c0088j2));
} catch (Exception e2) {
e2.getMessage();
Toast.makeText(m3, 2131820815, 1).show();
}
}
mainActivity2.C();
}
});
}
SettingBinding settingBinding26 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding26);
settingBinding26.remoteSettings.setOnClickListener(new View.OnClickListener(this) {
public final C0088j2 f871b;
{
this.f871b = this;
}
@Override
public final void onClick(View view2) {
switch (i7) {
case 0:
C0088j2 this$0 = this.f871b;
kotlin.jvm.internal.j.e(this$0, "this$0");
MainActivity mainActivity2 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity2, "$mainActivity");
C0136t1 c0136t1 = new C0136t1();
Bundle bundle2 = new Bundle();
bundle2.putString(TbsVideoCacheTask.KEY_VIDEO_CACHE_PARAM_URL, this$0.f1199c);
c0136t1.setArguments(bundle2);
c0136t1.h(this$0.requireFragmentManager(), "ModalFragment");
mainActivity2.C();
break;
case 1:
C0088j2 c0088j2 = this.f871b;
MainActivity mainActivity3 = mainActivity;
new T2().h(c0088j2.requireFragmentManager(), "SourcesFragment");
mainActivity3.C();
break;
default:
C0088j2 this$02 = this.f871b;
kotlin.jvm.internal.j.e(this$02, "this$0");
MainActivity mainActivity4 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity4, "$mainActivity");
C0136t1 c0136t12 = new C0136t1();
Bundle bundle3 = new Bundle();
bundle3.putInt("drawable_id", 2131230799);
c0136t12.setArguments(bundle3);
c0136t12.h(this$02.requireFragmentManager(), "ModalFragment");
mainActivity4.C();
break;
}
}
});
SettingBinding settingBinding27 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding27);
settingBinding27.checkVersion.setOnClickListener(new T1(requireActivity, this));
SettingBinding settingBinding28 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding28);
settingBinding28.checkVersion.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public final boolean onLongClick(View view2) {
boolean canRequestPackageInstalls;
androidx.fragment.app.M m2 = androidx.fragment.app.M.this;
C0088j2 c0088j2 = this;
if (Build.VERSION.SDK_INT >= 26) {
canRequestPackageInstalls = m2.getPackageManager().canRequestPackageInstalls();
if (!canRequestPackageInstalls) {
try {
Intent intent = new Intent("android.settings.MANAGE_UNKNOWN_APP_SOURCES");
intent.setData(Uri.parse("package:" + m2.getPackageName()));
c0088j2.startActivityForResult(intent, 2);
c0088j2.h(2131820712);
return true;
} catch (Exception e2) {
e2.getMessage();
Toast.makeText(m2, 2131820712, 0).show();
return true;
}
}
}
try {
C0138t3 c0138t3 = c0088j2.f1198b;
if (c0138t3 != null) {
c0138t3.b();
return true;
}
kotlin.jvm.internal.j.i("updateManager");
throw null;
} catch (Exception e3) {
e3.getMessage();
Toast.makeText(m2, 2131820803, 0).show();
return true;
}
}
});
SettingBinding settingBinding29 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding29);
settingBinding29.confirmConfig.setOnClickListener(new View.OnClickListener(this) {
public final C0088j2 f871b;
{
this.f871b = this;
}
@Override
public final void onClick(View view2) {
switch (i8) {
case 0:
C0088j2 this$0 = this.f871b;
kotlin.jvm.internal.j.e(this$0, "this$0");
MainActivity mainActivity2 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity2, "$mainActivity");
C0136t1 c0136t1 = new C0136t1();
Bundle bundle2 = new Bundle();
bundle2.putString(TbsVideoCacheTask.KEY_VIDEO_CACHE_PARAM_URL, this$0.f1199c);
c0136t1.setArguments(bundle2);
c0136t1.h(this$0.requireFragmentManager(), "ModalFragment");
mainActivity2.C();
break;
case 1:
C0088j2 c0088j2 = this.f871b;
MainActivity mainActivity3 = mainActivity;
new T2().h(c0088j2.requireFragmentManager(), "SourcesFragment");
mainActivity3.C();
break;
default:
C0088j2 this$02 = this.f871b;
kotlin.jvm.internal.j.e(this$02, "this$0");
MainActivity mainActivity4 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity4, "$mainActivity");
C0136t1 c0136t12 = new C0136t1();
Bundle bundle3 = new Bundle();
bundle3.putInt("drawable_id", 2131230799);
c0136t12.setArguments(bundle3);
c0136t12.h(this$02.requireFragmentManager(), "ModalFragment");
mainActivity4.C();
break;
}
}
});
SettingBinding settingBinding30 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding30);
final int i14 = 2;
settingBinding30.appreciate.setOnClickListener(new View.OnClickListener(this) {
public final C0088j2 f871b;
{
this.f871b = this;
}
@Override
public final void onClick(View view2) {
switch (i14) {
case 0:
C0088j2 this$0 = this.f871b;
kotlin.jvm.internal.j.e(this$0, "this$0");
MainActivity mainActivity2 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity2, "$mainActivity");
C0136t1 c0136t1 = new C0136t1();
Bundle bundle2 = new Bundle();
bundle2.putString(TbsVideoCacheTask.KEY_VIDEO_CACHE_PARAM_URL, this$0.f1199c);
c0136t1.setArguments(bundle2);
c0136t1.h(this$0.requireFragmentManager(), "ModalFragment");
mainActivity2.C();
break;
case 1:
C0088j2 c0088j2 = this.f871b;
MainActivity mainActivity3 = mainActivity;
new T2().h(c0088j2.requireFragmentManager(), "SourcesFragment");
mainActivity3.C();
break;
default:
C0088j2 this$02 = this.f871b;
kotlin.jvm.internal.j.e(this$02, "this$0");
MainActivity mainActivity4 = mainActivity;
kotlin.jvm.internal.j.e(mainActivity4, "$mainActivity");
C0136t1 c0136t12 = new C0136t1();
Bundle bundle3 = new Bundle();
bundle3.putInt("drawable_id", 2131230799);
c0136t12.setArguments(bundle3);
c0136t12.h(this$02.requireFragmentManager(), "ModalFragment");
mainActivity4.C();
break;
}
}
});
SettingBinding settingBinding31 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding31);
settingBinding31.setting.setOnClickListener(new View.OnClickListener(this) {
public final C0088j2 f886b;
{
this.f886b = this;
}
@Override
public final void onClick(View view2) {
final C0088j2 this$0 = this.f886b;
switch (i8) {
case 0:
kotlin.jvm.internal.j.e(this$0, "this$0");
String string = this$0.requireContext().getString(2131820753);
kotlin.jvm.internal.j.d(string, "getString(...)");
try {
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(string));
intent.addCategory("android.intent.category.BROWSABLE");
this$0.startActivity(intent);
return;
} catch (ActivityNotFoundException unused) {
this$0.h(2131820734);
SettingBinding settingBinding72 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding72);
settingBinding72.version.requestFocus();
return;
} catch (Exception unused2) {
this$0.h(2131820734);
SettingBinding settingBinding82 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding82);
settingBinding82.version.requestFocus();
return;
}
case 1:
kotlin.jvm.internal.j.e(this$0, "this$0");
this$0.g();
androidx.fragment.app.M activity2 = this$0.getActivity();
MainActivity mainActivity2 = activity2 instanceof MainActivity ? (MainActivity) activity2 : null;
if (mainActivity2 != null) {
mainActivity2.C();
return;
}
return;
default:
androidx.fragment.app.M activity3 = this$0.getActivity();
final MainActivity mainActivity3 = activity3 instanceof MainActivity ? (MainActivity) activity3 : null;
final Dialog dialog = new Dialog(this$0.requireContext());
dialog.setContentView(2131558451);
dialog.setCancelable(true);
Window window = dialog.getWindow();
if (window != null) {
window.setBackgroundDrawable(new ColorDrawable(0));
}
Window window2 = dialog.getWindow();
if (window2 != null) {
window2.setLayout(-2, -2);
}
final C0083i2 c0083i2 = new C0083i2(this$0, mainActivity3);
dialog.setOnShowListener(new DialogInterface.OnShowListener() {
@Override
public final void onShow(DialogInterface dialogInterface) {
Dialog dialog2 = dialog;
C0088j2 c0088j2 = this$0;
C0083i2 c0083i22 = c0083i2;
View findViewById = dialog2.findViewById(2131362063);
MainActivity mainActivity4 = mainActivity3;
if (findViewById != null) {
findViewById.setOnTouchListener(new ViewOnTouchListenerC0102m1(mainActivity4, 2));
}
View findViewById2 = dialog2.findViewById(2131361916);
if (findViewById2 != null) {
findViewById2.setOnClickListener(new ViewOnClickListenerC0061e2(mainActivity4, c0088j2, dialog2, c0083i22, 0));
}
View findViewById3 = dialog2.findViewById(2131362155);
if (findViewById3 != null) {
findViewById3.setOnClickListener(new ViewOnClickListenerC0061e2(mainActivity4, c0088j2, dialog2, c0083i22, 1));
}
}
});
try {
dialog.show();
if (mainActivity3 == null) {
this$0.h(2131820806);
dialog.dismiss();
return;
}
C3 c3 = C3.f575a;
C0054d1 c0054d1 = this$0.f1200d;
if (c0054d1 == null) {
kotlin.jvm.internal.j.i("viewModel");
throw null;
}
h4 h4Var = new h4(mainActivity3, c0054d1);
if (mainActivity3.f336a.f2734d.compareTo(EnumC0247s.f2824d) >= 0) {
BuildersKt__Builders_commonKt.launch$default(androidx.lifecycle.V.e(mainActivity3), Dispatchers.getMain(), null, new C0057d4(h4Var, dialog, c0083i2, null), 2, null);
return;
} else {
c0083i2.a();
return;
}
} catch (Exception e2) {
e2.getMessage();
this$0.h(2131820806);
return;
}
}
}
});
SettingBinding settingBinding32 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding32);
final int i15 = 2;
settingBinding32.verifyUser.setOnClickListener(new View.OnClickListener(this) {
public final C0088j2 f886b;
{
this.f886b = this;
}
@Override
public final void onClick(View view2) {
final C0088j2 this$0 = this.f886b;
switch (i15) {
case 0:
kotlin.jvm.internal.j.e(this$0, "this$0");
String string = this$0.requireContext().getString(2131820753);
kotlin.jvm.internal.j.d(string, "getString(...)");
try {
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(string));
intent.addCategory("android.intent.category.BROWSABLE");
this$0.startActivity(intent);
return;
} catch (ActivityNotFoundException unused) {
this$0.h(2131820734);
SettingBinding settingBinding72 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding72);
settingBinding72.version.requestFocus();
return;
} catch (Exception unused2) {
this$0.h(2131820734);
SettingBinding settingBinding82 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding82);
settingBinding82.version.requestFocus();
return;
}
case 1:
kotlin.jvm.internal.j.e(this$0, "this$0");
this$0.g();
androidx.fragment.app.M activity2 = this$0.getActivity();
MainActivity mainActivity2 = activity2 instanceof MainActivity ? (MainActivity) activity2 : null;
if (mainActivity2 != null) {
mainActivity2.C();
return;
}
return;
default:
androidx.fragment.app.M activity3 = this$0.getActivity();
final MainActivity mainActivity3 = activity3 instanceof MainActivity ? (MainActivity) activity3 : null;
final Dialog dialog = new Dialog(this$0.requireContext());
dialog.setContentView(2131558451);
dialog.setCancelable(true);
Window window = dialog.getWindow();
if (window != null) {
window.setBackgroundDrawable(new ColorDrawable(0));
}
Window window2 = dialog.getWindow();
if (window2 != null) {
window2.setLayout(-2, -2);
}
final C0083i2 c0083i2 = new C0083i2(this$0, mainActivity3);
dialog.setOnShowListener(new DialogInterface.OnShowListener() {
@Override
public final void onShow(DialogInterface dialogInterface) {
Dialog dialog2 = dialog;
C0088j2 c0088j2 = this$0;
C0083i2 c0083i22 = c0083i2;
View findViewById = dialog2.findViewById(2131362063);
MainActivity mainActivity4 = mainActivity3;
if (findViewById != null) {
findViewById.setOnTouchListener(new ViewOnTouchListenerC0102m1(mainActivity4, 2));
}
View findViewById2 = dialog2.findViewById(2131361916);
if (findViewById2 != null) {
findViewById2.setOnClickListener(new ViewOnClickListenerC0061e2(mainActivity4, c0088j2, dialog2, c0083i22, 0));
}
View findViewById3 = dialog2.findViewById(2131362155);
if (findViewById3 != null) {
findViewById3.setOnClickListener(new ViewOnClickListenerC0061e2(mainActivity4, c0088j2, dialog2, c0083i22, 1));
}
}
});
try {
dialog.show();
if (mainActivity3 == null) {
this$0.h(2131820806);
dialog.dismiss();
return;
}
C3 c3 = C3.f575a;
C0054d1 c0054d1 = this$0.f1200d;
if (c0054d1 == null) {
kotlin.jvm.internal.j.i("viewModel");
throw null;
}
h4 h4Var = new h4(mainActivity3, c0054d1);
if (mainActivity3.f336a.f2734d.compareTo(EnumC0247s.f2824d) >= 0) {
BuildersKt__Builders_commonKt.launch$default(androidx.lifecycle.V.e(mainActivity3), Dispatchers.getMain(), null, new C0057d4(h4Var, dialog, c0083i2, null), 2, null);
return;
} else {
c0083i2.a();
return;
}
} catch (Exception e2) {
e2.getMessage();
this$0.h(2131820806);
return;
}
}
}
});
SettingBinding settingBinding33 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding33);
float b2 = yourTVApplication.b(settingBinding33.versionName.getTextSize());
SettingBinding settingBinding34 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding34);
ViewGroup.LayoutParams layoutParams = settingBinding34.content.getLayoutParams();
SettingBinding settingBinding35 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding35);
layoutParams.width = yourTVApplication.a(settingBinding35.content.getLayoutParams().width);
SettingBinding settingBinding36 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding36);
LinearLayout linearLayout = settingBinding36.content;
SettingBinding settingBinding37 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding37);
int a2 = yourTVApplication.a(settingBinding37.content.getPaddingLeft());
SettingBinding settingBinding38 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding38);
int a3 = yourTVApplication.a(settingBinding38.content.getPaddingTop());
SettingBinding settingBinding39 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding39);
int a4 = yourTVApplication.a(settingBinding39.content.getPaddingRight());
SettingBinding settingBinding40 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding40);
linearLayout.setPadding(a2, a3, a4, yourTVApplication.a(settingBinding40.content.getPaddingBottom()));
SettingBinding settingBinding41 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding41);
AppCompatTextView appCompatTextView = settingBinding41.name;
SettingBinding settingBinding42 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding42);
appCompatTextView.setTextSize(yourTVApplication.b(settingBinding42.name.getTextSize()));
SettingBinding settingBinding43 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding43);
settingBinding43.version.setTextSize(b2);
SettingBinding settingBinding44 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding44);
ViewGroup.LayoutParams layoutParams2 = settingBinding44.version.getLayoutParams();
kotlin.jvm.internal.j.c(layoutParams2, "null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams");
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams2;
SettingBinding settingBinding45 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding45);
AppCompatTextView version = settingBinding45.version;
kotlin.jvm.internal.j.d(version, "version");
ViewGroup.LayoutParams layoutParams3 = version.getLayoutParams();
ViewGroup.MarginLayoutParams marginLayoutParams2 = layoutParams3 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams3 : null;
marginLayoutParams.topMargin = yourTVApplication.a(marginLayoutParams2 != null ? marginLayoutParams2.topMargin : 0);
SettingBinding settingBinding46 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding46);
AppCompatTextView version2 = settingBinding46.version;
kotlin.jvm.internal.j.d(version2, "version");
ViewGroup.LayoutParams layoutParams4 = version2.getLayoutParams();
ViewGroup.MarginLayoutParams marginLayoutParams3 = layoutParams4 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams4 : null;
marginLayoutParams.bottomMargin = yourTVApplication.a(marginLayoutParams3 != null ? marginLayoutParams3.bottomMargin : 0);
SettingBinding settingBinding47 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding47);
settingBinding47.version.setLayoutParams(marginLayoutParams);
SettingBinding settingBinding48 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding48);
int a5 = yourTVApplication.a(settingBinding48.confirmConfig.getLayoutParams().width);
SettingBinding settingBinding49 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding49);
ViewGroup.LayoutParams layoutParams5 = settingBinding49.verifyUser.getLayoutParams();
kotlin.jvm.internal.j.c(layoutParams5, "null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams");
ViewGroup.MarginLayoutParams marginLayoutParams4 = (ViewGroup.MarginLayoutParams) layoutParams5;
SettingBinding settingBinding50 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding50);
AppCompatButton verifyUser = settingBinding50.verifyUser;
kotlin.jvm.internal.j.d(verifyUser, "verifyUser");
ViewGroup.LayoutParams layoutParams6 = verifyUser.getLayoutParams();
marginLayoutParams4.setMarginEnd(yourTVApplication.a(layoutParams6 instanceof ViewGroup.MarginLayoutParams ? ((ViewGroup.MarginLayoutParams) layoutParams6).getMarginEnd() : 0));
SettingBinding settingBinding51 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding51);
settingBinding51.versionName.setTextSize(b2);
SettingBinding settingBinding52 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding52);
AppCompatButton appCompatButton = settingBinding52.remoteSettings;
SettingBinding settingBinding53 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding53);
AppCompatButton appCompatButton2 = settingBinding53.confirmConfig;
SettingBinding settingBinding54 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding54);
AppCompatButton appCompatButton3 = settingBinding54.clear;
int i16 = 1;
SettingBinding settingBinding55 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding55);
AppCompatButton appCompatButton4 = settingBinding55.checkVersion;
int i17 = 0;
SettingBinding settingBinding56 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding56);
AppCompatButton appCompatButton5 = settingBinding56.verifyUser;
SettingBinding settingBinding57 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding57);
AppCompatButton appCompatButton6 = settingBinding57.appreciate;
AppCompatButton[] appCompatButtonArr = new AppCompatButton[6];
appCompatButtonArr[0] = appCompatButton;
appCompatButtonArr[1] = appCompatButton2;
appCompatButtonArr[2] = appCompatButton3;
appCompatButtonArr[3] = appCompatButton4;
appCompatButtonArr[4] = appCompatButton5;
appCompatButtonArr[c2] = appCompatButton6;
for (Object obj : N0.m.X(appCompatButtonArr)) {
kotlin.jvm.internal.j.d(obj, "next(...)");
AppCompatButton appCompatButton7 = (AppCompatButton) obj;
appCompatButton7.getLayoutParams().width = a5;
appCompatButton7.setTextSize(b2);
appCompatButton7.setLayoutParams(marginLayoutParams4);
appCompatButton7.setOnFocusChangeListener(new W1(appCompatButton7, requireActivity, i17));
i17 = 0;
}
SettingBinding settingBinding58 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding58);
float b3 = yourTVApplication.b(settingBinding58.switchChannelReversal.getTextSize());
SettingBinding settingBinding59 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding59);
ViewGroup.LayoutParams layoutParams7 = settingBinding59.switchChannelReversal.getLayoutParams();
kotlin.jvm.internal.j.c(layoutParams7, "null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams");
ViewGroup.MarginLayoutParams marginLayoutParams5 = (ViewGroup.MarginLayoutParams) layoutParams7;
SettingBinding settingBinding60 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding60);
SwitchCompat switchChannelReversal = settingBinding60.switchChannelReversal;
kotlin.jvm.internal.j.d(switchChannelReversal, "switchChannelReversal");
ViewGroup.LayoutParams layoutParams8 = switchChannelReversal.getLayoutParams();
ViewGroup.MarginLayoutParams marginLayoutParams6 = layoutParams8 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams8 : null;
marginLayoutParams5.topMargin = yourTVApplication.a(marginLayoutParams6 != null ? marginLayoutParams6.topMargin : 0);
SettingBinding settingBinding61 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding61);
SwitchCompat switchCompat19 = settingBinding61.switchDownloadX5;
SettingBinding settingBinding62 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding62);
SwitchCompat switchCompat20 = settingBinding62.switchAutoDownloadX5;
SettingBinding settingBinding63 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding63);
SwitchCompat switchCompat21 = settingBinding63.switchChannelReversal;
SettingBinding settingBinding64 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding64);
SwitchCompat switchCompat22 = settingBinding64.switchChannelNum;
SettingBinding settingBinding65 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding65);
SwitchCompat switchCompat23 = settingBinding65.switchTime;
SettingBinding settingBinding66 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding66);
SwitchCompat switchCompat24 = settingBinding66.switchBootStartup;
SettingBinding settingBinding67 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding67);
SwitchCompat switchCompat25 = settingBinding67.switchRepeatInfo;
SettingBinding settingBinding68 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding68);
SwitchCompat switchCompat26 = settingBinding68.switchDefaultLike;
SettingBinding settingBinding69 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding69);
SwitchCompat switchCompat27 = settingBinding69.switchShowAllChannels;
SettingBinding settingBinding70 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding70);
SwitchCompat switchCompat28 = settingBinding70.switchCompactMenu;
SettingBinding settingBinding71 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding71);
SwitchCompat switchCompat29 = settingBinding71.switchDisplaySeconds;
SettingBinding settingBinding72 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding72);
SwitchCompat switchCompat30 = settingBinding72.switchSoftDecode;
SettingBinding settingBinding73 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding73);
SwitchCompat switchCompat31 = settingBinding73.switchAutoSwitchSource;
SettingBinding settingBinding74 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding74);
SwitchCompat switchCompat32 = settingBinding74.switchShowSourceButton;
SettingBinding settingBinding75 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding75);
SwitchCompat switchCompat33 = settingBinding75.switchShowProgressBar;
SettingBinding settingBinding76 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding76);
SwitchCompat switchCompat34 = settingBinding76.switchEnableScreenOffAudio;
SettingBinding settingBinding77 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding77);
SwitchCompat switchCompat35 = settingBinding77.switchFullScreenMode;
SettingBinding settingBinding78 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding78);
SwitchCompat switchCompat36 = settingBinding78.switchExit;
SwitchCompat[] switchCompatArr = new SwitchCompat[18];
switchCompatArr[0] = switchCompat19;
switchCompatArr[1] = switchCompat20;
switchCompatArr[2] = switchCompat21;
switchCompatArr[3] = switchCompat22;
switchCompatArr[4] = switchCompat23;
switchCompatArr[c2] = switchCompat24;
switchCompatArr[6] = switchCompat25;
switchCompatArr[7] = switchCompat26;
switchCompatArr[8] = switchCompat27;
switchCompatArr[9] = switchCompat28;
switchCompatArr[10] = switchCompat29;
switchCompatArr[11] = switchCompat30;
switchCompatArr[12] = switchCompat31;
switchCompatArr[13] = switchCompat32;
switchCompatArr[14] = switchCompat33;
switchCompatArr[15] = switchCompat34;
switchCompatArr[16] = switchCompat35;
switchCompatArr[17] = switchCompat36;
for (Object obj2 : N0.m.X(switchCompatArr)) {
kotlin.jvm.internal.j.d(obj2, "next(...)");
SwitchCompat switchCompat37 = (SwitchCompat) obj2;
switchCompat37.setTextSize(b3);
switchCompat37.setLayoutParams(marginLayoutParams5);
switchCompat37.setOnFocusChangeListener(new W1(switchCompat37, requireActivity, i16));
i16 = 1;
}
androidx.fragment.app.M requireActivity2 = requireActivity();
kotlin.jvm.internal.j.d(requireActivity2, "requireActivity(...)");
long longVersionCode = Build.VERSION.SDK_INT >= 28 ? requireActivity2.getPackageManager().getPackageInfo(requireActivity2.getPackageName(), 0).getLongVersionCode() : requireActivity2.getPackageManager().getPackageInfo(requireActivity2.getPackageName(), 0).versionCode;
androidx.fragment.app.M requireActivity3 = requireActivity();
kotlin.jvm.internal.j.d(requireActivity3, "requireActivity(...)");
this.f1198b = new C0138t3(requireActivity3, longVersionCode);
SettingBinding settingBinding79 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding79);
settingBinding79.clear.setOnClickListener(new T1(this, requireActivity2));
SettingBinding settingBinding80 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding80);
settingBinding80.switchShowAllChannels.setOnCheckedChangeListener(new Y1(this, mainActivity));
SettingBinding settingBinding81 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding81);
final int i18 = 1;
settingBinding81.getRoot().setFocusable(true);
SettingBinding settingBinding82 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding82);
settingBinding82.getRoot().setFocusableInTouchMode(true);
view.setFocusable(true);
view.setFocusableInTouchMode(true);
SettingBinding settingBinding83 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding83);
settingBinding83.name.setFocusable(true);
SettingBinding settingBinding84 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding84);
settingBinding84.name.setFocusableInTouchMode(true);
SettingBinding settingBinding85 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding85);
settingBinding85.name.setOnFocusChangeListener(new View.OnFocusChangeListener(this) {
public final C0088j2 f942b;
{
this.f942b = this;
}
@Override
public final void onFocusChange(View view2, boolean z22) {
switch (i18) {
case 0:
C0088j2 this$0 = this.f942b;
kotlin.jvm.internal.j.e(this$0, "this$0");
androidx.fragment.app.M context = requireActivity;
kotlin.jvm.internal.j.e(context, "$context");
if (!z22) {
SettingBinding settingBinding86 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding86);
settingBinding86.version.setBackground(new ColorDrawable(context.getColor(2131099695)));
SettingBinding settingBinding92 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding92);
settingBinding92.version.setTextColor(context.getColor(2131099682));
break;
} else {
SettingBinding settingBinding102 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding102);
settingBinding102.version.setBackground(new ColorDrawable(context.getColor(2131099710)));
SettingBinding settingBinding112 = this$0.f1197a;
kotlin.jvm.internal.j.b(settingBinding112);
settingBinding112.version.setTextColor(context.getColor(2131099762));
break;
}
default:
C0088j2 this$02 = this.f942b;
kotlin.jvm.internal.j.e(this$02, "this$0");
androidx.fragment.app.M context2 = requireActivity;
kotlin.jvm.internal.j.e(context2, "$context");
SettingBinding settingBinding122 = this$02.f1197a;
kotlin.jvm.internal.j.b(settingBinding122);
settingBinding122.name.setTextColor(context2.getColor(z22 ? 2131099710 : 2131099756));
break;
}
}
});
view.post(new V1(this, i18));
SettingBinding settingBinding86 = this.f1197a;
kotlin.jvm.internal.j.b(settingBinding86);
settingBinding86.getRoot().setOnTouchListener(new ViewOnTouchListenerC0102m1(requireActivity2, i18));
view.setOnKeyListener(new Z1(requireActivity2, 0));
}
}