MD5 校验值:968838cd794cef01a8eb9d3146a32cc7
MainActivity.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package app.activities; import android.content.ActivityNotFoundException; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.res.Configuration; import android.net.Uri; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.Window; import androidx.appcompat.widget.Toolbar; import androidx.fragment.app.Fragment; import androidx.fragment.app.m; import androidx.fragment.app.s; import androidx.viewpager.widget.ViewPager; import app.activities.MainActivity; import app.d.g; import app.d.h; import com.google.android.material.navigation.NavigationView; import com.google.android.material.tabs.TabLayout; import d.fad7.ActivityWithFragments; import f.a.f; import f.a.i; import f.e.a; import f.k.b; import haibison.dgtv.R; import java.util.ArrayList; import java.util.GregorianCalendar; import java.util.List; import java.util.Locale; import java.util.Timer; import java.util.TimerTask; public final class MainActivity extends app.activities.c { private static final b.C0118b[] V0 = {new b.C0118b("0.10.1", new GregorianCalendar(2023, 2, 19), R.array.html__update_details_of_v0_10_1), new b.C0118b("0.10.0", new GregorianCalendar(2022, 5, 18), R.array.html__update_details_of_v0_10_0), new b.C0118b("0.9.1", new GregorianCalendar(2021, 3, 15), R.array.html__update_details_of_v0_9_1), new b.C0118b("0.9.0", new GregorianCalendar(2020, 10, 17), R.array.html__update_details_of_v0_9_0), new b.C0118b("0.8.0", new GregorianCalendar(2020, 10, 14), R.array.html__update_details_of_v0_8_0), new b.C0118b("0.7.0", new GregorianCalendar(2020, 10, 7), R.array.html__update_details_of_v0_7_0), new b.C0118b("0.6.0", new GregorianCalendar(2020, 10, 6), R.array.html__update_details_of_v0_6_0), new b.C0118b("0.5.0", new GregorianCalendar(2020, 10, 6), R.array.html__update_details_of_v0_5_0), new b.C0118b("0.4.0", new GregorianCalendar(2020, 10, 2), R.array.html__update_details_of_v0_4_0)}; private c.j.a.a X0; private androidx.appcompat.app.b Y0; private NavigationView Z0; private TabLayout a1; private ViewPager b1; private c c1; private final Timer W0 = new Timer(); private final TimerTask d1 = new a(); private final NavigationView.c e1 = new NavigationView.c() { @Override public final boolean a(MenuItem menuItem) { return MainActivity.this.c0(menuItem); } }; private final ViewPager.j f1 = new b(); class a extends TimerTask { a() { } @Override public void run() { try { a.c.e(MainActivity.this); } catch (Throwable th) { Log.e("DGTV::#17-0.5.8", th.getMessage(), th); } } } public class b extends ViewPager.n { b() { } public void e() { MainActivity.this.y(); } @Override public void a(int i, float f2, int i2) { super.a(i, f2, i2); } @Override public void c(int i) { super.c(i); MainActivity.this.runOnUiThread(new Runnable() { @Override public final void run() { MainActivity.b.this.e(); } }); } } private final class c extends s { private final List<ActivityWithFragments.c> i; public c(Context context, m mVar) { super(mVar); ArrayList arrayList = new ArrayList(); this.i = arrayList; Bundle bundle = new Bundle(); bundle.putInt("81387bc8-2d6ccd05-1027ae40-1e4d4385.FragmentAdapter.RES_FRAGMENT_DISPLAY_NAME", R.string.demo); arrayList.add(new ActivityWithFragments.c(g.class, bundle)); Bundle bundle2 = new Bundle(); bundle2.putInt("81387bc8-2d6ccd05-1027ae40-1e4d4385.FragmentAdapter.RES_FRAGMENT_DISPLAY_NAME", R.string.text__whats_new); bundle2.putSerializable("b942116b-9b0078f1-f967855d-a56c4a57.FragmentOfRecentUpdates.recent_updates", MainActivity.V0); arrayList.add(new ActivityWithFragments.c(f.k.c.class, bundle2)); Bundle bundle3 = new Bundle(); bundle3.putInt("81387bc8-2d6ccd05-1027ae40-1e4d4385.FragmentAdapter.RES_FRAGMENT_DISPLAY_NAME", R.string.about); arrayList.add(new ActivityWithFragments.c(f.class, bundle3)); } @Override public int c() { return this.i.size(); } @Override public CharSequence e(int i) { int i2 = this.i.get(i).t0.getInt("81387bc8-2d6ccd05-1027ae40-1e4d4385.FragmentAdapter.RES_FRAGMENT_DISPLAY_NAME", -1); if (i2 > 0) { return MainActivity.this.getString(i2).toUpperCase(Locale.getDefault()); } return null; } @Override public Fragment p(int i) { return this.i.get(i).a(); } } private boolean a0(int i) { switch (i) { case android.R.id.home: onBackPressed(); return true; case R.id.action__change_ad_consent: Y(); return true; case R.id.action__contact_email: new f.l.g.b(this).i("haibison.apps@gmail.com").k(getString(R.string.app_name)).h(); return true; case R.id.action__docs: try { new ActivityWithFragments.d(this, (Class<? extends ActivityWithFragments>) DialogWhenLargeActivity.class).m().j(h.class, null).g(R.string.documentation).h(); } catch (Throwable th) { Log.e("DGTV::#17-0.5.8", th.getMessage(), th); } return true; case R.id.action__privacy_policy: try { new ActivityWithFragments.d(this, (Class<? extends ActivityWithFragments>) DialogWhenLargeActivity.class).m().j(d.fad7.l.b.class, i.TRAON_TEAM.d(this, null)).g(R.string.about__text__privacy_policy).h(); } catch (Throwable th2) { Log.e("DGTV::#17-0.5.8", th2.getMessage(), th2); } return true; case R.id.action__share: try { startActivity(new Intent("android.intent.action.SEND").setType("text/plain").putExtra("android.intent.extra.TEXT", String.format("%s: %s", getString(R.string.ptext__s_for_android, new Object[]{getString(R.string.app_name)}), "https://play.google.com/store/apps/details?id=haibison.dgtv"))); } catch (ActivityNotFoundException e2) { Log.e("DGTV::#17-0.5.8", e2.getMessage(), e2); } return true; default: return false; } } public boolean c0(MenuItem menuItem) { return a0(menuItem.getItemId()); } @Override protected void T(BroadcastReceiver broadcastReceiver, Intent intent, String str, Uri uri) { Window window; View decorView; super.T(broadcastReceiver, intent, str, uri); if (TextUtils.isEmpty(str)) { return; } str.hashCode(); if (!str.equals("467b6ed0-1fe9d62a-6bf823be-6ac9506f.MainActivity.set_screen_on")) { if (str.equals("467b6ed0-1fe9d62a-6bf823be-6ac9506f.MainActivity.show_home")) { this.b1.setCurrentItem(0); } } else { if (intent == null || !intent.hasExtra("467b6ed0-1fe9d62a-6bf823be-6ac9506f.MainActivity.on") || (window = getWindow()) == null || (decorView = window.getDecorView()) == null) { return; } decorView.setKeepScreenOn(intent.getBooleanExtra("467b6ed0-1fe9d62a-6bf823be-6ac9506f.MainActivity.on", false)); } } @Override protected IntentFilter U() { return f.h.a.b(null, "467b6ed0-1fe9d62a-6bf823be-6ac9506f.MainActivity.show_home", "467b6ed0-1fe9d62a-6bf823be-6ac9506f.MainActivity.set_screen_on"); } @Override public void onBackPressed() { c.j.a.a aVar = this.X0; if (aVar != null && aVar.isDrawerOpen(8388611)) { this.X0.closeDrawer(8388611); } else { super.onBackPressed(); } } @Override public void onConfigurationChanged(Configuration configuration) { super.onConfigurationChanged(configuration); androidx.appcompat.app.b bVar = this.Y0; if (bVar != null) { bVar.f(configuration); } } @Override protected void onCreate(Bundle bundle) { K().s(false).o(R.layout.activity__main); super.onCreate(bundle); setVolumeControlStream(3); Toolbar toolbar = (Toolbar) f.l.f.a(this, R.id.toolbar); this.X0 = (c.j.a.a) f.l.f.a(this, R.id.drawer); this.Z0 = (NavigationView) f.l.f.a(this, R.id.navigation); this.a1 = (TabLayout) f.l.f.a(this, R.id.tab_layout); this.b1 = (ViewPager) f.l.f.a(this, R.id.pager); d.fad7.m.a.a(this, toolbar); H(toolbar); toolbar.setTitleTextColor(f.l.d.f(this, R.color.action_bar__text)); NavigationView navigationView = this.Z0; if (navigationView != null) { navigationView.setNavigationItemSelectedListener(this.e1); } c.j.a.a aVar = this.X0; if (aVar != null) { androidx.appcompat.app.b bVar = new androidx.appcompat.app.b(this, aVar, toolbar, R.string.text__open_drawer, R.string.text__close_drawer); this.Y0 = bVar; this.X0.addDrawerListener(bVar); } c cVar = new c(this, r()); this.c1 = cVar; this.b1.setAdapter(cVar); this.b1.c(this.f1); if (f.l.d.j(this, R.integer.activity__main__view_pager_transformer, R.integer.view_pager_transformer__depth_page)) { this.b1.Q(true, new app.f.a.a()); } else if (f.l.d.j(this, R.integer.activity__main__view_pager_transformer, R.integer.view_pager_transformer__zoom_out_page)) { this.b1.Q(true, new app.f.a.b()); } TabLayout tabLayout = this.a1; if (tabLayout != null) { tabLayout.setupWithViewPager(this.b1); } this.W0.schedule(this.d1, 0L, 30000L); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity__main, menu); return super.onCreateOptionsMenu(menu); } @Override protected void onDestroy() { this.W0.cancel(); super.onDestroy(); } @Override public boolean onOptionsItemSelected(MenuItem menuItem) { if (a0(menuItem.getItemId())) { return true; } return super.onOptionsItemSelected(menuItem); } @Override public void onPostCreate(Bundle bundle) { super.onPostCreate(bundle); androidx.appcompat.app.b bVar = this.Y0; if (bVar != null) { bVar.j(); } } }