MD5 校验值:d7f913ab91d7343430e85d5ce2e5aff0
SettingsActivity.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.ottplay.ottplay.settings; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.res.Configuration; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.FrameLayout; import android.widget.ListAdapter; import android.widget.ListView; import android.widget.TextView; import androidx.appcompat.widget.Toolbar; import androidx.appcompat.widget.o; import androidx.constraintlayout.widget.ConstraintLayout; import bg.g; import bg.h; import bg.i; import bg.j; import bg.k; import bg.l; import bg.m; import cg.c; import cg.f; import com.android.billingclient.api.Purchase; import com.android.billingclient.api.SkuDetails; import com.iptv.player.R; import com.ottplay.ottplay.utils.Keys; import d9.b51; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Objects; import java.util.concurrent.TimeUnit; import nf.d; import xa.w0; import xb.e; import ze.d; public class SettingsActivity extends xe.a implements d.InterfaceC0215d, d.a { public static final int f20458z = 0; public e f20459p; public String f20461r; public m f20463t; public g f20464u; public g f20465v; public List<g> f20460q = new ArrayList(); public final jg.a f20462s = new jg.a(0); public final Handler f20466w = new Handler(Looper.getMainLooper()); public final Runnable f20467x = new a(); public final BroadcastReceiver f20468y = new b(); public class a implements Runnable { public a() { } @Override public void run() { e eVar = SettingsActivity.this.f20459p; if (eVar != null) { ((FrameLayout) eVar.f44766d).setVisibility(0); } } } public class b extends BroadcastReceiver { public b() { } @Override public void onReceive(Context context, Intent intent) { if (SettingsActivity.this.isFinishing() || intent.getAction() == null) { return; } if (intent.getAction().equals("epg_update_action")) { SettingsActivity settingsActivity = SettingsActivity.this; String stringExtra = intent.getStringExtra("epg_update_name"); int i10 = SettingsActivity.f20458z; settingsActivity.R(stringExtra); } if (intent.getAction().equals("playlist_update_action")) { SettingsActivity settingsActivity2 = SettingsActivity.this; int i11 = SettingsActivity.f20458z; settingsActivity2.S(); } SettingsActivity.this.f20463t.notifyDataSetChanged(); } } public static void P(SettingsActivity settingsActivity, int i10) { Objects.requireNonNull(settingsActivity); new rg.a(new h(settingsActivity, 1)).h(wg.a.f44053b).d(hg.b.a()).f(new k(settingsActivity, i10)); } public static void Q(SettingsActivity settingsActivity) { settingsActivity.f20466w.removeCallbacks(settingsActivity.f20467x); ((FrameLayout) settingsActivity.f20459p.f44766d).setVisibility(8); ((ListView) settingsActivity.f20459p.f44765c).setAdapter((ListAdapter) settingsActivity.f20463t); } public final void R(String str) { g gVar = this.f20464u; if (gVar == null) { return; } if (!o.f9580a) { gVar.f13636c = 4; return; } String a02 = cg.a.a0(str); if (a02.isEmpty()) { this.f20464u.f13635b = getString(R.string.f65860_resource_name_obfuscated_res_0x7f13029c); } else { this.f20464u.f13635b = a02; } this.f20464u.f13636c = 5; } public final void S() { if (this.f20465v == null) { return; } if (!f.y()) { this.f20465v.f13636c = 4; return; } this.f20465v.f13635b = getString(R.string.f65860_resource_name_obfuscated_res_0x7f13029c); this.f20465v.f13636c = 5; } @Override public void f(Purchase purchase) { } @Override public void g(Purchase purchase) { Iterator<String> it = purchase.b().iterator(); while (it.hasNext()) { String next = it.next(); if (cg.a.a0(next).equals("support_one") || cg.a.a0(next).equals("support_two") || cg.a.a0(next).equals("support_three")) { cg.a.W(this, getString(R.string.f60180_resource_name_obfuscated_res_0x7f130064), 1); } } } @Override public void h(androidx.fragment.app.m mVar) { mVar.r0(); } @Override public void onConfigurationChanged(Configuration configuration) { super.onConfigurationChanged(configuration); ConstraintLayout.a aVar = (ConstraintLayout.a) ((Toolbar) this.f20459p.f44768f).getLayoutParams(); int dimensionPixelSize = getResources().getDimensionPixelSize(R.dimen.f33290_resource_name_obfuscated_res_0x7f0703d0); ((ViewGroup.MarginLayoutParams) aVar).height = dimensionPixelSize; ((Toolbar) this.f20459p.f44768f).setMinimumHeight(dimensionPixelSize); ((ViewGroup.MarginLayoutParams) ((ConstraintLayout.a) ((ListView) this.f20459p.f44765c).getLayoutParams())).topMargin = getResources().getDimensionPixelSize(R.dimen.f33290_resource_name_obfuscated_res_0x7f0703d0); } @Override public void onCreate(Bundle bundle) { super.onCreate(bundle); View inflate = getLayoutInflater().inflate(R.layout.f56020_resource_name_obfuscated_res_0x7f0e0027, (ViewGroup) null, false); int i10 = R.id.f52170_resource_name_obfuscated_res_0x7f0b0435; ListView listView = (ListView) w0.e(inflate, R.id.f52170_resource_name_obfuscated_res_0x7f0b0435); if (listView != null) { i10 = R.id.f52180_resource_name_obfuscated_res_0x7f0b0436; FrameLayout frameLayout = (FrameLayout) w0.e(inflate, R.id.f52180_resource_name_obfuscated_res_0x7f0b0436); if (frameLayout != null) { i10 = R.id.f52190_resource_name_obfuscated_res_0x7f0b0437; View e10 = w0.e(inflate, R.id.f52190_resource_name_obfuscated_res_0x7f0b0437); if (e10 != null) { b51 b10 = b51.b(e10); i10 = R.id.f52200_resource_name_obfuscated_res_0x7f0b0438; Toolbar toolbar = (Toolbar) w0.e(inflate, R.id.f52200_resource_name_obfuscated_res_0x7f0b0438); if (toolbar != null) { e eVar = new e((ConstraintLayout) inflate, listView, frameLayout, b10, toolbar); this.f20459p = eVar; setContentView(eVar.e()); ((FrameLayout) this.f20459p.f44766d).setVisibility(8); f.H(); f.I(); ((Toolbar) this.f20459p.f44768f).setTitle(R.string.f66210_resource_name_obfuscated_res_0x7f1302bf); ((Toolbar) this.f20459p.f44768f).setNavigationIcon(R.drawable.f36430_resource_name_obfuscated_res_0x7f08012b); ((Toolbar) this.f20459p.f44768f).setNavigationOnClickListener(new ye.b(this)); ((ListView) this.f20459p.f44765c).setOnItemClickListener(new i(this)); ((ListView) this.f20459p.f44765c).addFooterView((FrameLayout) getLayoutInflater().inflate(R.layout.f56840_resource_name_obfuscated_res_0x7f0e0079, (ViewGroup) null, false), null, false); TextView textView = (TextView) findViewById(R.id.f52210_resource_name_obfuscated_res_0x7f0b0439); StringBuilder sb2 = new StringBuilder(); sb2.append(getString(R.string.f59840_resource_name_obfuscated_res_0x7f130042)); sb2.append(", "); sb2.append(getString(R.string.f60030_resource_name_obfuscated_res_0x7f130055)); String a10 = w.a.a(sb2, " ", "1.9.3.21"); if (c.f() && c.l().equals(Keys.getSCPRC())) { StringBuilder a11 = android.support.v4.media.b.a(" ("); a11.append(getString(R.string.f59890_resource_name_obfuscated_res_0x7f130047)); a11.append(")"); a10 = a10.concat(a11.toString()); } textView.setText(a10); this.f20466w.postDelayed(this.f20467x, 500L); jg.a aVar = this.f20462s; if (aVar != null) { aVar.c(); } this.f20460q = new ArrayList(); this.f20463t = new m(this, this.f20460q); boolean z10 = c.f() && c.l().equals(Keys.getSCPRC()); if (!z10) { this.f20460q.add(new g(getString(R.string.f63160_resource_name_obfuscated_res_0x7f13018e), 0)); } this.f20460q.add(new g(getString(R.string.f62720_resource_name_obfuscated_res_0x7f130162), 0)); this.f20460q.add(new g(getString(R.string.f62710_resource_name_obfuscated_res_0x7f130161), 0)); int size = this.f20460q.size(); this.f20460q.add(new g(getString(R.string.f63120_resource_name_obfuscated_res_0x7f13018a), 0)); this.f20460q.add(new g(getString(R.string.f66390_resource_name_obfuscated_res_0x7f1302d1), 0)); this.f20460q.add(new g(getString(R.string.f66600_resource_name_obfuscated_res_0x7f1302e6), 0)); this.f20460q.add(new g(getString(R.string.f62730_resource_name_obfuscated_res_0x7f130163), 0)); this.f20460q.add(new g(defpackage.b.f12917b, 0)); this.f20460q.add(new g(defpackage.b.f12916a, 0)); if (z10) { } new rg.a(new h(this, 0)).h(wg.a.f44053b).d(hg.b.a()).f(new j(this, size)); ze.d.a(getApplication()).h(this); return; } } } } throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i10))); } @Override public void onDestroy() { super.onDestroy(); ze.d.a(getApplication()).j(this); jg.a aVar = this.f20462s; if (aVar != null) { aVar.e(); } List<g> list = this.f20460q; if (list != null) { list.clear(); } } @Override public void onResume() { super.onResume(); R(""); S(); this.f20463t.notifyDataSetChanged(); com.ottplay.ottplay.b.h(getApplicationContext()).c(); } @Override public void onStart() { super.onStart(); cg.a.R(this, this.f20468y, "playlist_update_action"); cg.a.R(this, this.f20468y, "epg_update_action"); } @Override public void onStop() { super.onStop(); cg.a.S(this, this.f20468y); jg.a aVar = this.f20462s; if (aVar != null) { aVar.c(); } } @Override public void r(List<Purchase> list) { } @Override public void u(androidx.fragment.app.m mVar) { String str = mVar.f10110x; if (str != null) { if (str.equals("epg_update_tag") || str.equals("playlist_update_tag")) { mVar.r0(); if (str.equals("epg_update_tag")) { ((TextView) ((b51) this.f20459p.f44767e).f21101c).setText(R.string.f61170_resource_name_obfuscated_res_0x7f1300c7); } else { ((TextView) ((b51) this.f20459p.f44767e).f21101c).setText(R.string.f65860_resource_name_obfuscated_res_0x7f13029c); } ((ConstraintLayout) ((b51) this.f20459p.f44767e).f21100b).setVisibility(0); ((ConstraintLayout) ((b51) this.f20459p.f44767e).f21100b).requestFocus(); rg.a aVar = new rg.a(new androidx.media2.player.c(this, str)); TimeUnit timeUnit = TimeUnit.SECONDS; ig.i iVar = wg.a.f44054c; aVar.a(1L, timeUnit, iVar).h(iVar).d(hg.b.a()).f(new l(this)); } } } @Override public void x(List<SkuDetails> list) { } @Override public void z(androidx.fragment.app.m mVar, TextView textView, Button button, Button button2) { textView.setText(this.f20461r); button.setText(getString(R.string.f67530_resource_name_obfuscated_res_0x7f130343)); button2.setText(getString(R.string.f67520_resource_name_obfuscated_res_0x7f130342)); } }