MD5 校验值:47dc1c492bf2859d50823a0fe72087d7
MainActivity.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.musicplayer.player.mp3player.white.start; import aby.slidinguu.panel.SlidingUpPanelLayout; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.content.SharedPreferences; import android.content.res.Configuration; import android.graphics.drawable.ColorDrawable; import android.net.ConnectivityManager; import android.net.Network; import android.net.NetworkInfo; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.os.RemoteException; import android.preference.PreferenceManager; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.support.v4.app.NotificationCompat; import android.support.v4.content.ContextCompat; import android.support.v4.content.pm.ShortcutManagerCompat; import android.support.v4.widget.DrawerLayout; import android.support.v7.widget.Toolbar; import android.support.v7.widget.helper.ItemTouchHelper; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.Toast; import c.b.a.c; import c.f.a.a.a.a; import c.f.a.a.a.c.a.d; import c.f.a.a.a.i; import c.f.a.a.a.i.s; import c.f.a.a.a.l.a.r; import c.f.a.a.a.l.m; import c.f.a.a.a.n.Bc; import c.f.a.a.a.n.C0141gc; import c.f.a.a.a.n.C0165mc; import c.f.a.a.a.n.C0184rc; import c.f.a.a.a.n.Cb; import c.f.a.a.a.n.Cc; import c.f.a.a.a.n.Ec; import c.f.a.a.a.n.Fc; import c.f.a.a.a.n.Gc; import c.f.a.a.a.n.Hb; import c.f.a.a.a.n.Hc; import c.f.a.a.a.n.Ic; import c.f.a.a.a.n.RunnableC0188sc; import c.f.a.a.a.n.RunnableC0192tc; import c.f.a.a.a.n.RunnableC0196uc; import c.f.a.a.a.n.RunnableC0200vc; import c.f.a.a.a.n.RunnableC0204wc; import c.f.a.a.a.n.Sb; import c.f.a.a.a.n.ViewOnClickListenerC0208xc; import c.f.a.a.a.t; import c.f.a.a.a.v; import c.g.a.b; import com.musicplayer.player.mp3player.white.MyApplication; import com.musicplayer.player.mp3player.white.R; import com.musicplayer.player.mp3player.white.equalizer.EqualizerActivity; import com.musicplayer.player.mp3player.white.start.FragmentDrawer; import com.musicplayer.player.mp3player.white.start.PreferencesActivity; import com.musicplayer.player.mp3player.white.widgets.shnebtn.ShineButton; import g.a.a.k; import org.greenrobot.eventbus.ThreadMode; public class MainActivity extends PermissionActivityWithEventBus implements FragmentDrawer.b, SlidingUpPanelLayout.b, ServiceConnection, t.a, View.OnClickListener, View.OnLongClickListener { public static final String TAG; public static final boolean f4075f; public static a f4076g; public d A; public FragmentDrawer k; public SlidingUpPanelLayout l; public t.c n; public b o; public String p; public SharedPreferences q; public ImageView r; public ImageView s; public ImageView t; public ShineButton u; public View v; public View w; public Fragment y; public final View.OnClickListener f4077h = new ViewOnClickListenerC0208xc(this); public final View.OnClickListener i = new Bc(this); public int j = -1; public final View.OnClickListener m = new Cc(this); public boolean x = false; public boolean z = false; public boolean B = false; public boolean C = false; public boolean D = false; public boolean E = false; static { int i = Build.VERSION.SDK_INT; f4075f = true; TAG = MainActivity.class.getSimpleName(); f4076g = null; } @h.a.a.a(124) private void RecPermissionReq() { if (l()) { t.l(this); } else { n(); } } @h.a.a.a(123) private void SDandRecPermissionReq() { if (m()) { u(); } else { o(); } } public static SlidingUpPanelLayout a(MainActivity mainActivity) { return mainActivity.l; } public static ImageView b(MainActivity mainActivity) { return mainActivity.t; } public static View.OnClickListener g(MainActivity mainActivity) { return mainActivity.i; } public static ShineButton h(MainActivity mainActivity) { return mainActivity.u; } public static FragmentDrawer i(MainActivity mainActivity) { return mainActivity.k; } public static SharedPreferences j(MainActivity mainActivity) { return mainActivity.q; } public static void k(MainActivity mainActivity) { mainActivity.A(); } public static void l(MainActivity mainActivity) { mainActivity.r(); } public static void m(MainActivity mainActivity) { Fragment findFragmentById = mainActivity.getSupportFragmentManager().findFragmentById(R.id.player_holder); if (findFragmentById != null) { ((C0141gc) findFragmentById).e(); } } public final void A() { if (isFinishing()) { return; } try { int i = this.q.getInt(getString(R.string.key_primarycolor), ContextCompat.getColor(this, R.color.colorPrimary)); int[] intArray = getResources().getIntArray(R.array.colorsarray); c cVar = new c(); Bundle bundle = new Bundle(); bundle.putInt("title_id", R.string.theme); bundle.putInt("columns", 5); bundle.putInt("size", 2); cVar.setArguments(bundle); cVar.a(intArray, i); cVar.l = new Gc(this); cVar.show(getSupportFragmentManager(), "some_tag"); } catch (Exception e2) { e2.printStackTrace(); } } @Override public void b() { } @Override public void onActivityResult(int i, int i2, Intent intent) { Fragment findFragmentById; String str = "on activity result requestCode" + i + " rescode " + i2; if (i == 112) { if (i2 == -1 && (findFragmentById = getSupportFragmentManager().findFragmentById(R.id.player_holder)) != null) { try { ((C0141gc) findFragmentById).e(); } catch (Exception e2) { e2.printStackTrace(); } } } else if (i == 234 && i2 == 0) { if (this.E) { Toast.makeText(this, R.string.eq_error, 1).show(); SharedPreferences sharedPreferences = this.q; if (sharedPreferences != null) { sharedPreferences.edit().putBoolean("key_systemeq", false).apply(); } } else { this.E = true; new Handler().postDelayed(new RunnableC0204wc(this), 1200L); } } super.onActivityResult(i, i2, intent); } @Override public void onClick(View view) { if (view.getId() == R.id.img_fav && f4076g != null) { try { long b2 = i.b(getContentResolver(), v.b(this)); if (b2 == -1) { b2 = i.a(getContentResolver(), v.b(this)); } if (i.a(this, f4076g.O(), Long.valueOf(b2))) { i.a(getContentResolver(), (int) f4076g.O(), b2); } else { i.a(this, new long[]{f4076g.O()}, Long.valueOf(b2)); } p(); } catch (Exception e2) { e2.printStackTrace(); } } } @Override public void onConfigurationChanged(Configuration configuration) { super.onConfigurationChanged(configuration); s.a(this, false, true, true, this.f4054b); } @Override public void onCreate(Bundle bundle) { this.q = PreferenceManager.getDefaultSharedPreferences(this); if (this.q.getBoolean("key_blk_thme", false)) { setTheme(R.style.AppThemeBlack); } super.onCreate(bundle); setContentView(R.layout.activity_main); this.t = (ImageView) findViewById(R.id.player_menu); this.u = (ShineButton) findViewById(R.id.img_fav); this.p = getResources().getString(R.string.app_name); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setElevation(0.0f); getSupportActionBar().setDisplayShowHomeEnabled(true); this.k = (FragmentDrawer) getSupportFragmentManager().findFragmentById(R.id.fragment_navigation_drawer); this.k.a(R.id.fragment_navigation_drawer, (DrawerLayout) findViewById(R.id.drawer_layout), toolbar); this.l = (SlidingUpPanelLayout) findViewById(R.id.sliding_layout); this.s = (ImageView) findViewById(R.id.img_queue); this.s.setOnClickListener(this.f4077h); this.v = findViewById(R.id.nowplaying); this.v.setOnClickListener(this.m); if (Build.VERSION.SDK_INT >= 19) { try { getWindow().setFlags(67108864, 67108864); this.o = new b(this); this.o.b(true); this.o.a(true); b.a aVar = this.o.f1798b; findViewById(android.R.id.content).setPadding(0, aVar.a(false), aVar.c(), aVar.b()); } catch (Exception e2) { e2.printStackTrace(); } } z(); new Handler().postDelayed(new Ec(this), 500L); if (bundle != null) { this.z = true; } if (v.d(this)) { try { this.x = true; this.A = d.a(this).h(); this.w = findViewById(R.id.cast_mini_holder); this.A.a(new Fc(this)); } catch (Exception e3) { e3.printStackTrace(); } } SDandRecPermissionReq(); } @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); try { if (this.x && this.A != null) { this.A.a(menu); } } catch (Exception e2) { e2.printStackTrace(); } getMenuInflater().inflate(R.menu.menu_main, menu); return true; } @Override public void onDestroy() { t.c cVar = this.n; if (cVar != null) { t.a(cVar); } super.onDestroy(); } @Override public boolean onKeyDown(int i, KeyEvent keyEvent) { boolean z; if (i == 4) { try { FragmentDrawer fragmentDrawer = this.k; if (fragmentDrawer == null || !fragmentDrawer.b()) { z = false; } else { this.k.a(); z = true; } if (z) { return true; } if (this.j == 7) { this.j = 0; return super.onKeyDown(i, keyEvent); } if (this.j == 8) { this.j = 4; return super.onKeyDown(i, keyEvent); } if (this.j == 0) { s(); return true; } this.p = getString(R.string.library); Cb cb = new Cb(); q(); new Handler().post(new RunnableC0188sc(this, cb)); this.j = 0; return true; } catch (Exception e2) { e2.printStackTrace(); } } return super.onKeyDown(i, keyEvent); } @Override public boolean onLongClick(View view) { if (view.getId() != R.id.img_fav) { return false; } i.a(this); return false; } @k(threadMode = ThreadMode.MAIN) public void onMessageEvent(String str) { if (str != null) { if (!str.equals("com.android.music.metachanged_aby") && !str.equals("com.android.music.playstatechanged_aby")) { if (str.equals("com.android.music.queuechanged")) { p(); return; } if (str.equals("hide_sliding_panel")) { q(); return; } if (str.equals("thmclr")) { z(); return; } else { if (str.equals("reconnect_ser") && m()) { this.n = t.a(this, this); return; } return; } } t.a(this, this.v, this.w, this.l); p(); } } @Override public void onNewIntent(Intent intent) { super.onNewIntent(intent); t.a(this, getIntent()); } @Override public boolean onOptionsItemSelected(MenuItem menuItem) { if (!m()) { o(); return true; } switch (menuItem.getItemId()) { case 16908332: finish(); return true; case R.id.action_equalizer: x(); return true; case R.id.action_search: Intent intent = new Intent(this, (Class<?>) Activity_search.class); intent.setFlags(65536); startActivity(intent); return true; case R.id.action_settings: y(); return true; case R.id.action_shareapp: try { Intent intent2 = new Intent("android.intent.action.SEND"); intent2.setType("text/plain"); intent2.putExtra("android.intent.extra.SUBJECT", getString(R.string.app_name)); intent2.putExtra("android.intent.extra.TEXT", "https://play.google.com/store/apps/details?id=" + getPackageName()); startActivity(Intent.createChooser(intent2, getString(R.string.shareapp))); } catch (Exception unused) { } return true; case R.id.action_shuffle: new Handler().post(new Hc(this)); return true; default: return super.onOptionsItemSelected(menuItem); } } @Override public void onPanelAnchored(View view) { } @Override public void onPanelCollapsed(View view) { try { w(); FragmentManager supportFragmentManager = getSupportFragmentManager(); Fragment findFragmentById = supportFragmentManager.findFragmentById(R.id.player_holder); if (findFragmentById != null) { FragmentTransaction beginTransaction = supportFragmentManager.beginTransaction(); beginTransaction.remove(findFragmentById); beginTransaction.commit(); } t.a(this, this.v, this.w, this.l); } catch (Exception e2) { e2.printStackTrace(); } } @Override public void onPanelExpanded(View view) { try { FragmentManager supportFragmentManager = getSupportFragmentManager(); Fragment findFragmentById = supportFragmentManager.findFragmentById(R.id.player_holder); if (findFragmentById == null || !(findFragmentById instanceof C0141gc)) { FragmentTransaction beginTransaction = supportFragmentManager.beginTransaction(); beginTransaction.add(R.id.player_holder, new C0141gc()); beginTransaction.commit(); } w(); p(); t.a(this, this.v, this.w, this.l); } catch (Exception e2) { e2.printStackTrace(); } } @Override public void onPanelHidden(View view) { } @Override public void onPanelSlide(View view, float f2) { String str = TAG; String str2 = "onPanelSlide, offset " + f2; } @Override public void onPause() { if (isFinishing() && this.y != null) { getSupportFragmentManager().beginTransaction().remove(this.y).commit(); } super.onPause(); } @Override public void onResume() { super.onResume(); if (f4076g != null && this.B) { t.a(this, this.v, this.w, this.l); } w(); p(); } @Override public void onServiceConnected(ComponentName componentName, IBinder iBinder) { f4076g = a.AbstractBinderC0012a.a(iBinder); try { new Handler().postDelayed(new RunnableC0196uc(this), 700L); p(); t.a(this, getIntent()); } catch (Exception e2) { e2.printStackTrace(); } } @Override public void onServiceDisconnected(ComponentName componentName) { f4076g = null; finish(); } public final void p() { SlidingUpPanelLayout slidingUpPanelLayout = this.l; if (slidingUpPanelLayout == null || slidingUpPanelLayout.d() != SlidingUpPanelLayout.c.EXPANDED || f4076g == null) { return; } try { long b2 = i.b(getContentResolver(), v.b(this)); if (b2 != -1) { if (i.a(this, f4076g.O(), Long.valueOf(b2))) { this.u.setImageResource(R.drawable.heart_on); this.u.b(true); } else { this.u.setImageResource(R.drawable.heart); this.u.b(false); } } } catch (Exception e2) { e2.printStackTrace(); } } public final boolean q() { SlidingUpPanelLayout slidingUpPanelLayout = this.l; if (slidingUpPanelLayout == null || slidingUpPanelLayout.d() != SlidingUpPanelLayout.c.EXPANDED) { return false; } this.l.a(SlidingUpPanelLayout.c.COLLAPSED); return true; } public final void r() { try { Intent intent = new Intent(ShortcutManagerCompat.ACTION_INSTALL_SHORTCUT); intent.putExtra("android.intent.extra.shortcut.NAME", getString(R.string.app_name)); intent.putExtra("android.intent.extra.shortcut.ICON_RESOURCE", Intent.ShortcutIconResource.fromContext(getApplicationContext(), R.drawable.ic_launcher)); intent.putExtra("android.intent.extra.shortcut.INTENT", new Intent(getApplicationContext(), (Class<?>) MainActivity.class)); intent.putExtra("duplicate", false); sendBroadcast(intent); } catch (Exception e2) { e2.printStackTrace(); } } public final void s() { boolean z; ConnectivityManager connectivityManager; NetworkInfo[] allNetworkInfo; if (this.D) { finish(); return; } System.out.println(); boolean z2 = false; try { connectivityManager = (ConnectivityManager) getSystemService("connectivity"); } catch (Exception e2) { e2.printStackTrace(); } if (Build.VERSION.SDK_INT >= 21) { for (Network network : connectivityManager.getAllNetworks()) { if (connectivityManager.getNetworkInfo(network).getState().equals(NetworkInfo.State.CONNECTED)) { z = true; break; } } } else if (connectivityManager != null && (allNetworkInfo = connectivityManager.getAllNetworkInfo()) != null) { for (NetworkInfo networkInfo : allNetworkInfo) { if (networkInfo.getState() == NetworkInfo.State.CONNECTED) { z = true; break; } } } z = false; if (z && !this.C) { View inflate = ((LayoutInflater) getSystemService("layout_inflater")).inflate(R.layout.ask_rating, (ViewGroup) null); inflate.setBackgroundColor(MyApplication.f3870a); e.a.a.a a2 = e.a.a.a.a((Context) this); a2.f4378h = inflate; a2.a(); e.a.a.a aVar = e.a.a.a.f4371a; if (!aVar.f4376f) { if (aVar.f4377g.getSharedPreferences("android_rate_pref_file", 0).getBoolean("android_rate_is_agree_show_dialog", true)) { boolean z3 = (a.a.a.a.b(aVar.f4377g) >= aVar.f4373c) && aVar.a(aVar.f4377g.getSharedPreferences("android_rate_pref_file", 0).getLong("android_rate_install_date", 0L), aVar.f4372b) && aVar.a(aVar.f4377g.getSharedPreferences("android_rate_pref_file", 0).getLong("android_rate_remind_interval", 0L), aVar.f4374d); } } z2 = true; if (z2) { e.a.a.a.f4371a.a((Activity) this); } this.C = true; } this.D = true; new Handler().postDelayed(new RunnableC0200vc(this), ItemTouchHelper.Callback.DRAG_SCROLL_ACCELERATION_LIMIT_TIME_MS); } public d t() { return this.A; } public final void u() { try { this.n = t.a(this, this); v(); Intent intent = getIntent(); if (intent != null && intent.getStringExtra("gotosetings") != null) { new Handler().postDelayed(new RunnableC0192tc(this), 700L); } s.a(this, false, true, true, this.f4054b); } catch (Exception e2) { e2.printStackTrace(); } } public final void v() { this.y = getSupportFragmentManager().findFragmentByTag("frMain"); Fragment fragment = this.y; if (fragment == null) { a(0); } else if (fragment instanceof Cb) { this.j = 0; } else if (fragment instanceof C0165mc) { this.j = 4; } else if (fragment instanceof Hb) { this.j = 5; } else if (fragment instanceof Sb) { this.j = 9; } else { a(0); } if (this.z) { this.j = 7; } } public final void w() { SlidingUpPanelLayout slidingUpPanelLayout = this.l; if (slidingUpPanelLayout != null) { boolean z = slidingUpPanelLayout.d() == SlidingUpPanelLayout.c.EXPANDED; if (this.r == null) { this.r = (ImageView) findViewById(R.id.menu_playpause); } if (z) { this.u.setVisibility(0); this.s.setVisibility(0); this.r.setVisibility(8); this.t.setVisibility(0); return; } this.u.setVisibility(8); this.s.setVisibility(8); this.r.setVisibility(0); this.t.setVisibility(8); } } public final void x() { int i = Build.VERSION.SDK_INT; if (this.q.getBoolean(getString(R.string.key_systemeq), false)) { try { Intent intent = new Intent("android.media.action.DISPLAY_AUDIO_EFFECT_CONTROL_PANEL"); if (getPackageManager().resolveActivity(intent, 0) != null) { intent.putExtra("android.media.extra.PACKAGE_NAME", getPackageName()); intent.putExtra("android.media.extra.AUDIO_SESSION", f4076g.getAudioSessionId()); startActivityForResult(intent, 234); } else { startActivity(new Intent(this, (Class<?>) EqualizerActivity.class)); } return; } catch (Exception e2) { e2.printStackTrace(); startActivity(new Intent(this, (Class<?>) EqualizerActivity.class)); return; } } startActivity(new Intent(this, (Class<?>) EqualizerActivity.class)); } public final void y() { q(); if (f4075f) { if (this.j != 3) { getFragmentManager().beginTransaction().replace(R.id.container_body, new PreferencesActivity.a()).commitAllowingStateLoss(); getSupportActionBar().setTitle(getResources().getString(R.string.settings)); this.j = 3; } } else { startActivity(new Intent(this, (Class<?>) PreferencesActivity.class)); } this.k.a(); } public final void z() { int i = this.q.getInt(getString(R.string.key_primarycolor), ContextCompat.getColor(this, R.color.colorPrimary)); int i2 = this.q.getInt(getString(R.string.key_secondarycolor), ContextCompat.getColor(this, R.color.colorPrimary)); MyApplication.f3870a = i; MyApplication.f3871b = i2; getSupportActionBar().setBackgroundDrawable(new ColorDrawable(i)); if (Build.VERSION.SDK_INT >= 21) { getSupportActionBar().setElevation(0.0f); } b bVar = this.o; if (bVar != null) { bVar.a(a.a.a.a.a(i, 0.2d)); } if (this.t != null) { this.u.setColorFilter(i2); this.s.setColorFilter(i2); this.t.setColorFilter(i2); } FragmentDrawer fragmentDrawer = this.k; if (fragmentDrawer != null) { fragmentDrawer.b(i); } } @Override public void j() { s.a(this, false, true, true, this.f4054b); } @Override public void k() { u(); } @Override public void a(View view, int i) { new Handler().postDelayed(new Ic(this, i), 300L); } public final void a(int i) { Sb sb; Fragment cb; switch (i) { case 0: if (this.j != 0) { cb = new Cb(); this.p = getString(R.string.library); this.j = 0; q(); if (cb == null) { new Handler().post(new RunnableC0188sc(this, cb)); return; } return; } sb = null; cb = sb; q(); if (cb == null) { } case 1: x(); sb = null; cb = sb; q(); if (cb == null) { } break; case 2: if (this.j != 4) { cb = new C0165mc(); this.p = getString(R.string.playlist); this.j = 4; q(); if (cb == null) { } } sb = null; cb = sb; q(); if (cb == null) { } break; case 3: startActivity(new Intent(this, (Class<?>) Activity_queue.class)); sb = null; cb = sb; q(); if (cb == null) { } break; case 4: try { if (f4076g != null && f4076g.H() > 0) { startActivity(new Intent(this, (Class<?>) Act_vandi.class)); } else { Toast.makeText(this, getString(R.string.emptyqu), 0).show(); } } catch (RemoteException e2) { e2.printStackTrace(); } sb = null; cb = sb; q(); if (cb == null) { } break; case 5: new C0184rc().show(getSupportFragmentManager(), ""); return; case 6: if (this.j != 5) { cb = new Hb(); this.p = getString(R.string.mp3cutter); this.j = 5; q(); if (cb == null) { } } sb = null; cb = sb; q(); if (cb == null) { } break; case 7: A(); sb = null; cb = sb; q(); if (cb == null) { } break; case 8: RecPermissionReq(); sb = null; cb = sb; q(); if (cb == null) { } break; case 9: if (this.j != 6) { sb = new Sb(); this.p = getString(R.string.duplicate); this.j = 6; cb = sb; q(); if (cb == null) { } } sb = null; cb = sb; q(); if (cb == null) { } break; case 10: y(); sb = null; cb = sb; q(); if (cb == null) { } break; case 11: startActivity(new Intent(this, (Class<?>) acti_rmv_ads.class)); sb = null; cb = sb; q(); if (cb == null) { } break; default: sb = null; cb = sb; q(); if (cb == null) { } break; } } public void a(String str, int i, boolean z) { if (str != null) { try { FragmentManager supportFragmentManager = getSupportFragmentManager(); Fragment findFragmentById = supportFragmentManager.findFragmentById(R.id.container_body); if (findFragmentById != null && (findFragmentById instanceof m)) { ((m) findFragmentById).a(str, i); } else { Bundle bundle = new Bundle(); bundle.putString("bucketname", str); bundle.putInt(NotificationCompat.MessagingStyle.Message.KEY_DATA_MIME_TYPE, i); m mVar = new m(); mVar.setArguments(bundle); supportFragmentManager.beginTransaction().replace(R.id.container_body, mVar, "frSub").addToBackStack("detailfrag").commit(); if (z) { this.j = 7; } else { this.j = 8; } } } catch (Exception e2) { e2.printStackTrace(); } } } public void a(String str) { if (str != null) { FragmentManager supportFragmentManager = getSupportFragmentManager(); Fragment findFragmentById = supportFragmentManager.findFragmentById(R.id.container_body); if (findFragmentById == null || !(findFragmentById instanceof r)) { FragmentTransaction beginTransaction = supportFragmentManager.beginTransaction(); Bundle bundle = new Bundle(); bundle.putString("bucketname", str); r rVar = new r(); rVar.setArguments(bundle); beginTransaction.replace(R.id.container_body, rVar, "frSub"); beginTransaction.addToBackStack("detailfrag"); beginTransaction.commit(); } this.j = 7; } } public void a(long j) { FragmentManager supportFragmentManager = getSupportFragmentManager(); Fragment findFragmentById = supportFragmentManager.findFragmentById(R.id.container_body); if (findFragmentById != null && (findFragmentById instanceof c.f.a.a.a.l.v)) { ((c.f.a.a.a.l.v) findFragmentById).a(j); } else { FragmentTransaction beginTransaction = supportFragmentManager.beginTransaction(); c.f.a.a.a.l.v vVar = new c.f.a.a.a.l.v(); Bundle bundle = new Bundle(); bundle.putLong("playlistId", j); vVar.setArguments(bundle); beginTransaction.replace(R.id.container_body, vVar, "frSub"); beginTransaction.addToBackStack("playlistfrag"); beginTransaction.commit(); supportFragmentManager.executePendingTransactions(); } this.j = 8; } }