Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
3,405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 65.51 KB | None | 0 0
  1. package com.spotify.music;
  2.  
  3. import android.app.Activity;
  4. import android.content.BroadcastReceiver;
  5. import android.content.Context;
  6. import android.content.Intent;
  7. import android.content.IntentFilter;
  8. import android.content.res.Configuration;
  9. import android.net.Uri;
  10. import android.os.Build;
  11. import android.os.Bundle;
  12. import android.os.Parcelable;
  13. import android.support.v4.app.Fragment;
  14. import android.support.v4.content.C0086o;
  15. import android.support.v4.widget.C0214o;
  16. import android.support.v4.widget.DrawerLayout;
  17. import android.support.v7.app.C0276v;
  18. import android.support.v7.p008a.C0242l;
  19. import android.text.TextUtils;
  20. import android.view.KeyEvent;
  21. import android.view.Menu;
  22. import android.view.MenuItem;
  23. import android.view.View;
  24. import android.view.inputmethod.InputMethodManager;
  25. import com.google.common.base.C1143e;
  26. import com.spotify.android.paste.app.FontSupport;
  27. import com.spotify.mobile.android.devtools.MethodTraceScope;
  28. import com.spotify.mobile.android.model.C1510c;
  29. import com.spotify.mobile.android.model.C1521l;
  30. import com.spotify.mobile.android.orbit.OrbitServiceObserver;
  31. import com.spotify.mobile.android.p048c.C1424c;
  32. import com.spotify.mobile.android.provider.C1549v;
  33. import com.spotify.mobile.android.provider.Metadata.Track;
  34. import com.spotify.mobile.android.provider.ag;
  35. import com.spotify.mobile.android.service.DeviceIdentifierLoggerIntentService;
  36. import com.spotify.mobile.android.service.LoginActivity;
  37. import com.spotify.mobile.android.service.SpotifyService;
  38. import com.spotify.mobile.android.service.ar;
  39. import com.spotify.mobile.android.service.connections.C1622b;
  40. import com.spotify.mobile.android.service.connections.C1630f;
  41. import com.spotify.mobile.android.service.connections.C1631g;
  42. import com.spotify.mobile.android.service.feature.C1407d;
  43. import com.spotify.mobile.android.service.feature.C1662h;
  44. import com.spotify.mobile.android.service.flow.logic.C1675c;
  45. import com.spotify.mobile.android.service.flow.login.C1785v;
  46. import com.spotify.mobile.android.service.session.C1352d;
  47. import com.spotify.mobile.android.service.session.C1882a;
  48. import com.spotify.mobile.android.service.session.C1885e;
  49. import com.spotify.mobile.android.service.session.C1886f;
  50. import com.spotify.mobile.android.service.session.C1887g;
  51. import com.spotify.mobile.android.spotlets.activityfeed.ActivityFeedFragment;
  52. import com.spotify.mobile.android.spotlets.activityfeed.C1932a;
  53. import com.spotify.mobile.android.spotlets.ads.BannerAdActivity;
  54. import com.spotify.mobile.android.spotlets.ads.C1962b;
  55. import com.spotify.mobile.android.spotlets.artist.C2014b;
  56. import com.spotify.mobile.android.spotlets.artist.C2018c;
  57. import com.spotify.mobile.android.spotlets.artist.C2019d;
  58. import com.spotify.mobile.android.spotlets.artist.C2026e;
  59. import com.spotify.mobile.android.spotlets.artist.C2027f;
  60. import com.spotify.mobile.android.spotlets.artist.C2031g;
  61. import com.spotify.mobile.android.spotlets.artist.C2033h;
  62. import com.spotify.mobile.android.spotlets.artist.C2037i;
  63. import com.spotify.mobile.android.spotlets.browse.C2139a;
  64. import com.spotify.mobile.android.spotlets.browse.C2150b;
  65. import com.spotify.mobile.android.spotlets.browse.C2153c;
  66. import com.spotify.mobile.android.spotlets.browse.C2154d;
  67. import com.spotify.mobile.android.spotlets.charts.C2194a;
  68. import com.spotify.mobile.android.spotlets.charts.C2197c;
  69. import com.spotify.mobile.android.spotlets.charts.C2201d;
  70. import com.spotify.mobile.android.spotlets.collection.fragments.C2262a;
  71. import com.spotify.mobile.android.spotlets.collection.fragments.C2274b;
  72. import com.spotify.mobile.android.spotlets.collection.fragments.C2285c;
  73. import com.spotify.mobile.android.spotlets.collection.fragments.C2291d;
  74. import com.spotify.mobile.android.spotlets.collection.fragments.C2297e;
  75. import com.spotify.mobile.android.spotlets.collection.fragments.C2307k;
  76. import com.spotify.mobile.android.spotlets.collection.fragments.C2317l;
  77. import com.spotify.mobile.android.spotlets.collection.fragments.C2318m;
  78. import com.spotify.mobile.android.spotlets.collection.fragments.CollectionFragment;
  79. import com.spotify.mobile.android.spotlets.crowdy.C2395a;
  80. import com.spotify.mobile.android.spotlets.crowdy.C2402c;
  81. import com.spotify.mobile.android.spotlets.discover.p083b.C2409a;
  82. import com.spotify.mobile.android.spotlets.follow.C2419c;
  83. import com.spotify.mobile.android.spotlets.mft.C2430a;
  84. import com.spotify.mobile.android.spotlets.mft.C2435b;
  85. import com.spotify.mobile.android.spotlets.openaccess.OpenAccessActivity;
  86. import com.spotify.mobile.android.spotlets.openaccess.util.C2481b.C24801;
  87. import com.spotify.mobile.android.spotlets.p066a.C1895a;
  88. import com.spotify.mobile.android.spotlets.phoenixinbox.C2499c;
  89. import com.spotify.mobile.android.spotlets.search.C2553c;
  90. import com.spotify.mobile.android.spotlets.search.C2556e;
  91. import com.spotify.mobile.android.spotlets.share.C2658e;
  92. import com.spotify.mobile.android.spotlets.socialchart.C2676a;
  93. import com.spotify.mobile.android.spotlets.socialchart.C2684b;
  94. import com.spotify.mobile.android.spotlets.user.C2752c;
  95. import com.spotify.mobile.android.spotlets.user.C2754e;
  96. import com.spotify.mobile.android.spotlets.user.C2760f;
  97. import com.spotify.mobile.android.spotlets.user.C2765j;
  98. import com.spotify.mobile.android.spotlets.user.ProfilesListFragment;
  99. import com.spotify.mobile.android.spotlets.user.ProfilesListFragment.Type;
  100. import com.spotify.mobile.android.ui.ActionBarManager;
  101. import com.spotify.mobile.android.ui.ActionBarTitle;
  102. import com.spotify.mobile.android.ui.C1961l;
  103. import com.spotify.mobile.android.ui.C2790a;
  104. import com.spotify.mobile.android.ui.C3110e;
  105. import com.spotify.mobile.android.ui.C3110e.C31091;
  106. import com.spotify.mobile.android.ui.C3285g;
  107. import com.spotify.mobile.android.ui.C3286k;
  108. import com.spotify.mobile.android.ui.actions.C2792a;
  109. import com.spotify.mobile.android.ui.actions.C2795d;
  110. import com.spotify.mobile.android.ui.activity.C2025r;
  111. import com.spotify.mobile.android.ui.activity.C2914k;
  112. import com.spotify.mobile.android.ui.activity.C2916m;
  113. import com.spotify.mobile.android.ui.activity.C2921q;
  114. import com.spotify.mobile.android.ui.activity.C2923u;
  115. import com.spotify.mobile.android.ui.activity.MainActivityIntentQueue;
  116. import com.spotify.mobile.android.ui.activity.NotificationWebViewActivity;
  117. import com.spotify.mobile.android.ui.activity.ShowcaseActivity;
  118. import com.spotify.mobile.android.ui.activity.UninstallOldAppActivity;
  119. import com.spotify.mobile.android.ui.activity.UpdateActivity;
  120. import com.spotify.mobile.android.ui.activity.dialog.PremiumUpsellInterstitialActivity;
  121. import com.spotify.mobile.android.ui.activity.upsell.UpsellDialogActivity;
  122. import com.spotify.mobile.android.ui.fragments.C1894e;
  123. import com.spotify.mobile.android.ui.fragments.C3149b;
  124. import com.spotify.mobile.android.ui.fragments.C3155c;
  125. import com.spotify.mobile.android.ui.fragments.C3162d;
  126. import com.spotify.mobile.android.ui.fragments.C3163f;
  127. import com.spotify.mobile.android.ui.fragments.C3168g;
  128. import com.spotify.mobile.android.ui.fragments.C3231o;
  129. import com.spotify.mobile.android.ui.fragments.C3253r;
  130. import com.spotify.mobile.android.ui.fragments.C3264t;
  131. import com.spotify.mobile.android.ui.fragments.C3269w;
  132. import com.spotify.mobile.android.ui.fragments.C3273x;
  133. import com.spotify.mobile.android.ui.fragments.CosmosTestFragment;
  134. import com.spotify.mobile.android.ui.fragments.NotificationSettingsFragment;
  135. import com.spotify.mobile.android.ui.fragments.logic.C3191f;
  136. import com.spotify.mobile.android.ui.fragments.logic.C3195g;
  137. import com.spotify.mobile.android.ui.fragments.logic.C3197j;
  138. import com.spotify.mobile.android.ui.fragments.logic.C3198k;
  139. import com.spotify.mobile.android.ui.fragments.logic.C3219t;
  140. import com.spotify.mobile.android.ui.fragments.logic.Flags;
  141. import com.spotify.mobile.android.ui.p098a.C2789a;
  142. import com.spotify.mobile.android.ui.page.DebugFlag;
  143. import com.spotify.mobile.android.ui.view.MainLayout;
  144. import com.spotify.mobile.android.ui.view.snackbar.C3428c;
  145. import com.spotify.mobile.android.ui.view.snackbar.SnackBar;
  146. import com.spotify.mobile.android.util.Assertion;
  147. import com.spotify.mobile.android.util.C3547t;
  148. import com.spotify.mobile.android.util.C3585y;
  149. import com.spotify.mobile.android.util.ClientEvent;
  150. import com.spotify.mobile.android.util.ClientEvent.Event;
  151. import com.spotify.mobile.android.util.ClientEvent.SubEvent;
  152. import com.spotify.mobile.android.util.SpotifyLink;
  153. import com.spotify.mobile.android.util.SpotifyLink.LinkType;
  154. import com.spotify.mobile.android.util.ab;
  155. import com.spotify.mobile.android.util.ae;
  156. import com.spotify.mobile.android.util.af;
  157. import com.spotify.mobile.android.util.ah;
  158. import com.spotify.mobile.android.util.ai;
  159. import com.spotify.mobile.android.util.an;
  160. import com.spotify.mobile.android.util.ax;
  161. import com.spotify.mobile.android.util.ay;
  162. import com.spotify.mobile.android.util.bq;
  163. import com.spotify.mobile.android.util.db;
  164. import com.spotify.mobile.android.util.dc;
  165. import com.spotify.mobile.android.util.dk;
  166. import com.spotify.mobile.android.util.dn;
  167. import com.spotify.mobile.android.util.ds;
  168. import com.spotify.mobile.android.util.dt;
  169. import com.spotify.mobile.android.util.p112a.C3466a;
  170. import com.spotify.mobile.android.util.p112a.C3466a.C34651;
  171. import com.spotify.mobile.android.util.p112a.C3467b;
  172. import com.spotify.mobile.android.util.p113b.C3479c;
  173. import com.spotify.mobile.android.util.p114c.C3487c;
  174. import com.spotify.mobile.android.util.p115d.C3501e;
  175. import com.spotify.mobile.android.util.prefs.C3544g;
  176. import com.spotify.mobile.android.util.tracking.TrackingService;
  177. import com.spotify.mobile.android.util.tracking.debug.C3556b;
  178. import com.spotify.mobile.android.util.viewuri.ViewUri;
  179. import com.spotify.mobile.android.util.viewuri.ViewUri.SubView;
  180. import com.spotify.music.spotlets.discover.p120b.C3640a;
  181. import com.spotify.music.spotlets.radio.p123b.C3678a;
  182. import com.spotify.music.spotlets.radio.p124c.C3681a;
  183. import java.util.Iterator;
  184. import java.util.Locale;
  185.  
  186. public class MainActivity extends C0276v implements C1352d, C1886f, C2921q {
  187.     private boolean f14232A;
  188.     private boolean f14233B;
  189.     private boolean f14234C;
  190.     private int f14235D = -1;
  191.     private boolean f14236E;
  192.     private boolean f14237F = false;
  193.     private C3547t f14238G;
  194.     private ax f14239H;
  195.     private ae f14240I;
  196.     private ds f14241J = null;
  197.     private C3618b f14242K = new C3618b(this);
  198.     private C2792a f14243L = ((C2792a) C1424c.m7137a(C2792a.class));
  199.     private C2795d f14244M = ((C2795d) C1424c.m7137a(C2795d.class));
  200.     private C1675c f14245N = ((C1675c) C1424c.m7137a(C1675c.class));
  201.     private C3466a f14246O = ((C3466a) C1424c.m7137a(C3466a.class));
  202.     private C1622b f14247P;
  203.     private MainActivityIntentQueue f14248Q = new MainActivityIntentQueue();
  204.     private boolean f14249R = false;
  205.     private SnackBar f14250S;
  206.     private C3428c f14251T;
  207.     private C3556b f14252U;
  208.     private Flags f14253V;
  209.     private C1882a f14254W = new C1882a(null, null, false, false, false, false, -1, null, false, false, false, false, false, new ag(null), null, null);
  210.     private C1631g f14255X = new C36011(this);
  211.     private BroadcastReceiver f14256Y = new C36076(this);
  212.     private BroadcastReceiver f14257Z = new C36087(this);
  213.     private C0214o aa = new C36098(this);
  214.     private C1961l ab = new C1961l(this) {
  215.         final /* synthetic */ MainActivity f14219a;
  216.  
  217.         {
  218.             this.f14219a = r1;
  219.         }
  220.  
  221.         public final void mo2177a(Fragment fragment) {
  222.             this.f14219a.f14262r.m11580a(this.f14219a.f14258n.m13365a());
  223.             this.f14219a.p_();
  224.             Activity activity = this.f14219a;
  225.             ((InputMethodManager) activity.getSystemService("input_method")).hideSoftInputFromWindow(activity.getWindow().getDecorView().getWindowToken(), 0);
  226.         }
  227.     };
  228.     public C3285g f14258n;
  229.     public C2025r f14259o;
  230.     C1407d f14260p = new C36054(this);
  231.     C1352d f14261q = new C36065(this);
  232.     private ActionBarManager f14262r;
  233.     private C3168g f14263s;
  234.     private C1662h f14264t;
  235.     private C1885e f14265u;
  236.     private C1962b f14266v;
  237.     private C3110e f14267w;
  238.     private DrawerLayout f14268x;
  239.     private C2790a f14269y;
  240.     private boolean f14270z;
  241.  
  242.     final class C36011 implements C1631g {
  243.         final /* synthetic */ MainActivity f14221a;
  244.  
  245.         C36011(MainActivity mainActivity) {
  246.             this.f14221a = mainActivity;
  247.         }
  248.  
  249.         public final void mo2778a() {
  250.             this.f14221a.f14248Q.f11077e = true;
  251.         }
  252.  
  253.         public final void mo2779b() {
  254.             this.f14221a.f14248Q.f11077e = false;
  255.         }
  256.     }
  257.  
  258.     final class C36022 implements C3467b {
  259.         final /* synthetic */ MainActivity f14222a;
  260.  
  261.         C36022(MainActivity mainActivity) {
  262.             this.f14222a = mainActivity;
  263.         }
  264.  
  265.         public final Uri mo2780a() {
  266.             Fragment b = this.f14222a.f14258n.m13370b();
  267.             if (b instanceof C1521l) {
  268.                 return ((C1521l) b).mo2141a();
  269.             }
  270.             return null;
  271.         }
  272.     }
  273.  
  274.     final class C36054 implements C1407d {
  275.         final /* synthetic */ MainActivity f14226a;
  276.  
  277.         final class C36041 implements Runnable {
  278.             final /* synthetic */ C36054 f14225a;
  279.  
  280.             C36041(C36054 c36054) {
  281.                 this.f14225a = c36054;
  282.             }
  283.  
  284.             public final void run() {
  285.                 Fragment b = this.f14225a.f14226a.f14258n.m13370b();
  286.                 Parcelable g = this.f14225a.f14226a.f14253V;
  287.                 Bundle bundle = b.f49r;
  288.                 if (bundle != null && bundle.containsKey("FlagsArgumentHelper.Flags")) {
  289.                     bundle.putParcelable("FlagsArgumentHelper.Flags", g);
  290.                 }
  291.                 ay.m14071a(this.f14225a.f14226a, b);
  292.             }
  293.         }
  294.  
  295.         C36054(MainActivity mainActivity) {
  296.             this.f14226a = mainActivity;
  297.         }
  298.  
  299.         public final void mo1761a(Flags flags) {
  300.             MethodTraceScope.FEATURE_FLAGS_CHANGED.m7146a();
  301.             boolean a = C3197j.m12925a(C3195g.f12253h, this.f14226a.f14253V, flags);
  302.             this.f14226a.f14253V = flags;
  303.             this.f14226a.f14242K.sendEmptyMessage(1);
  304.             if (this.f14226a.f14263s != null) {
  305.                 this.f14226a.f14263s.f12174i.notifyDataSetChanged();
  306.             }
  307.             if (a) {
  308.                 this.f14226a.f14242K.post(new C36041(this));
  309.             }
  310.             MethodTraceScope.FEATURE_FLAGS_CHANGED.m7148b();
  311.         }
  312.     }
  313.  
  314.     final class C36065 implements C1352d {
  315.         final /* synthetic */ MainActivity f14227a;
  316.  
  317.         C36065(MainActivity mainActivity) {
  318.             this.f14227a = mainActivity;
  319.         }
  320.  
  321.         public final void mo1677a(C1882a c1882a) {
  322.             this.f14227a.f14242K.sendEmptyMessage(2);
  323.             if (this.f14227a.f14263s != null) {
  324.                 this.f14227a.f14263s.f12174i.notifyDataSetChanged();
  325.             }
  326.             ((ai) C1424c.m7137a(ai.class)).f13618c = c1882a.f8503b;
  327.             C3487c c3487c = new C3487c();
  328.             C3487c.m14155a(this.f14227a, c1882a.f8503b);
  329.             ((db) C1424c.m7137a(db.class)).f13840a = c1882a.f8503b;
  330.         }
  331.     }
  332.  
  333.     final class C36076 extends BroadcastReceiver {
  334.         final /* synthetic */ MainActivity f14228a;
  335.  
  336.         C36076(MainActivity mainActivity) {
  337.             this.f14228a = mainActivity;
  338.         }
  339.  
  340.         public final void onReceive(Context context, Intent intent) {
  341.             this.f14228a.startActivity(new Intent(this.f14228a, UpdateActivity.class).setData(intent.getData()));
  342.         }
  343.     }
  344.  
  345.     final class C36087 extends BroadcastReceiver {
  346.         final /* synthetic */ MainActivity f14229a;
  347.  
  348.         C36087(MainActivity mainActivity) {
  349.             this.f14229a = mainActivity;
  350.         }
  351.  
  352.         public final void onReceive(Context context, Intent intent) {
  353.             int intExtra = intent.getIntExtra("error_code", 0);
  354.             String stringExtra = intent.getStringExtra("error_description");
  355.             if (stringExtra == null) {
  356.                 stringExtra = "";
  357.             }
  358.             Object[] objArr = new Object[]{OrbitServiceObserver.getSocialErrorAsString(intExtra), stringExtra};
  359.             switch (intExtra) {
  360.                 case 1:
  361.                 case 3:
  362.                 case 5:
  363.                     return;
  364.                 case 2:
  365.                     bq.m14131c("Error loading user data for %s", stringExtra);
  366.                     return;
  367.                 case 6:
  368.                     if (C1549v.m7429a(this.f14229a.f14235D)) {
  369.                         this.f14229a.f14243L;
  370.                         C2792a.m11584a(context);
  371.                         this.f14229a.f14243L.m11598a(context, ViewUri.f14125f, SubEvent.SOCIAL_ERROR_TOKEN_EXPIRED);
  372.                         return;
  373.                     }
  374.                     return;
  375.                 case 7:
  376.                     C1424c.m7137a(dn.class);
  377.                     dn.m14250a(context, R.string.toast_merge_social_error, 1, new Object[0]);
  378.                     return;
  379.                 default:
  380.                     Assertion.m13889a("Here we received an onSocialError call that we should have handled (" + intExtra + ", " + stringExtra + ")");
  381.                     return;
  382.             }
  383.         }
  384.     }
  385.  
  386.     final class C36098 implements C0214o {
  387.         final /* synthetic */ MainActivity f14230a;
  388.  
  389.         C36098(MainActivity mainActivity) {
  390.             this.f14230a = mainActivity;
  391.         }
  392.  
  393.         public final void mo394a(View view, float f) {
  394.             C2790a m = this.f14230a.f14269y;
  395.             if (m.f10890a) {
  396.                 m.f10891b.mo394a(view, f);
  397.             }
  398.             this.f14230a.f14262r.m11579a(f);
  399.         }
  400.  
  401.         public final void mo393a(View view) {
  402.             C2790a m = this.f14230a.f14269y;
  403.             if (m.f10890a) {
  404.                 m.f10891b.mo393a(view);
  405.             }
  406.             this.f14230a.f14262r.m11579a(1.0f);
  407.             if (this.f14230a.f14263s != null) {
  408.                 Fragment i = this.f14230a.f14263s;
  409.                 if (i.k_()) {
  410.                     i.f12174i.notifyDataSetChanged();
  411.                     Context context = i.f19D;
  412.                     C2792a c2792a = i.aj;
  413.                     C2792a.m11587a(context, ViewUri.f14122c, new ClientEvent(Event.PRESENTED));
  414.                     ((InputMethodManager) context.getSystemService("input_method")).hideSoftInputFromWindow(context.getWindow().getDecorView().getWindowToken(), 0);
  415.                     i.m79j().mo76b(R.id.loader_capping, null, i.ak);
  416.                 }
  417.             }
  418.             this.f14230a.f14248Q.f11074b = true;
  419.         }
  420.  
  421.         public final void mo395b(View view) {
  422.             C2790a m = this.f14230a.f14269y;
  423.             if (m.f10890a) {
  424.                 m.f10891b.mo395b(view);
  425.             }
  426.             this.f14230a.f14262r.m11579a(0.0f);
  427.             if (this.f14230a.f14263s != null) {
  428.                 Fragment i = this.f14230a.f14263s;
  429.                 if (i.k_()) {
  430.                     C2792a c2792a = i.aj;
  431.                     C2792a.m11587a(i.f19D, ViewUri.f14122c, new ClientEvent(Event.DISMISSED));
  432.                 }
  433.             }
  434.             this.f14230a.f14248Q.f11074b = false;
  435.             if (this.f14230a.f14236E) {
  436.                 this.f14230a.m14577k();
  437.             }
  438.         }
  439.     }
  440.  
  441.     final class C36109 implements C2914k {
  442.         final /* synthetic */ MainActivity f14231a;
  443.  
  444.         C36109(MainActivity mainActivity) {
  445.             this.f14231a = mainActivity;
  446.         }
  447.  
  448.         public final void mo2781a(Intent intent) {
  449.             this.f14231a.onNewIntent(intent);
  450.         }
  451.     }
  452.  
  453.     static /* synthetic */ void m14565c(MainActivity mainActivity) {
  454.         mainActivity.m14571h();
  455.         if (!mainActivity.f14270z) {
  456.             mainActivity.f14270z = true;
  457.             mainActivity.f14264t.m7776a(mainActivity.f14260p);
  458.             mainActivity.f14265u.m8660a(mainActivity.f14261q);
  459.             mainActivity.f210b.mo53a().mo33a(new C3219t(), null).mo34b();
  460.             ClientEvent clientEvent = new ClientEvent(Event.SETTINGS_INFO, SubEvent.SETTINGS_PATH);
  461.             clientEvent.m13901a("value", String.valueOf(new ar(mainActivity.getApplication()).m7660d()));
  462.             C2792a c2792a = mainActivity.f14243L;
  463.             C2792a.m11587a(mainActivity.getApplication(), ViewUri.f14137r, clientEvent);
  464.             double d = ((an) C1424c.m7137a(an.class)).m14048d();
  465.             boolean c = dt.m14281c(mainActivity);
  466.             ClientEvent clientEvent2 = new ClientEvent(Event.DEVICE_INFO, SubEvent.NONE);
  467.             clientEvent2.m13901a("screen_size", String.format(Locale.US, "%.2f", new Object[]{Double.valueOf(d)}));
  468.             clientEvent2.m13901a("layout_as_tablet", c ? "true" : "false");
  469.             C2792a c2792a2 = mainActivity.f14243L;
  470.             C2792a.m11587a(mainActivity.getApplication(), ViewUri.f14121b, clientEvent2);
  471.             mainActivity.startService(DeviceIdentifierLoggerIntentService.m7444a(mainActivity));
  472.         } else if (mainActivity.f14234C) {
  473.             mainActivity.m14581m();
  474.             mainActivity.setVisible(true);
  475.         }
  476.     }
  477.  
  478.     static /* synthetic */ void m14567e(MainActivity mainActivity) {
  479.         if (!mainActivity.f14237F) {
  480.             mainActivity.f14237F = true;
  481.             C2789a.m11583a(mainActivity.f210b, mainActivity.f14253V);
  482.             mainActivity.f14238G = new C3547t(mainActivity);
  483.             mainActivity.f14238G.execute(new Void[0]);
  484.         }
  485.         mainActivity.m14571h();
  486.         if (mainActivity.f14234C) {
  487.             mainActivity.m14581m();
  488.             mainActivity.setVisible(true);
  489.             return;
  490.         }
  491.         if (((Boolean) mainActivity.f14253V.mo2004a(C3195g.f12236Q)).booleanValue()) {
  492.             C3501e c3501e = new C3501e(mainActivity);
  493.             Flags flags = mainActivity.f14253V;
  494.             if (!c3501e.m14209a(flags).isEmpty()) {
  495.                 Intent intent = new Intent(c3501e.f13830a, ShowcaseActivity.class);
  496.                 C3198k.m12929a(intent, flags);
  497.                 c3501e.f13830a.startActivity(intent);
  498.             }
  499.         }
  500.         mainActivity.f14232A = true;
  501.         mainActivity.f14248Q.f11075c = mainActivity.m14573i();
  502.         if (mainActivity.m14573i()) {
  503.             mainActivity.m14575j();
  504.         }
  505.     }
  506.  
  507.     static /* synthetic */ void m14568f(MainActivity mainActivity) {
  508.         if (mainActivity.f14234C) {
  509.             mainActivity.m14581m();
  510.             mainActivity.setVisible(true);
  511.             return;
  512.         }
  513.         mainActivity.f14233B = true;
  514.         mainActivity.f14248Q.f11075c = mainActivity.m14573i();
  515.         if (mainActivity.m14573i()) {
  516.             mainActivity.m14575j();
  517.         }
  518.     }
  519.  
  520.     public final C1885e mo2523b() {
  521.         return this.f14265u;
  522.     }
  523.  
  524.     private static IntentFilter m14562b(String str) {
  525.         IntentFilter intentFilter = new IntentFilter(str);
  526.         intentFilter.addCategory("android.intent.category.DEFAULT");
  527.         return intentFilter;
  528.     }
  529.  
  530.     private void m14571h() {
  531.         if (this.f14253V != null && !((Boolean) this.f14253V.mo2004a(C3195g.f12270y)).booleanValue()) {
  532.             C1675c c1675c = this.f14245N;
  533.             if (!c1675c.m7916e()) {
  534.                 c1675c.m7911a(new ClientEvent(Event.ANONYMOUS_TEST_LOGIN, SubEvent.NONE));
  535.                 c1675c.m7917f();
  536.             }
  537.             this.f14245N.m7918g();
  538.         }
  539.     }
  540.  
  541.     private boolean m14573i() {
  542.         return this.f14232A && this.f14233B;
  543.     }
  544.  
  545.     private void m14575j() {
  546.         Assertion.m13893a(m14573i(), "tried to load UI fragments before ready");
  547.         if (((Boolean) this.f14253V.mo2004a(C3195g.f12268w)).booleanValue()) {
  548.             DrawerLayout drawerLayout = this.f14268x;
  549.             drawerLayout.m1409a(1, 3);
  550.             drawerLayout.m1409a(1, 5);
  551.         } else {
  552.             this.f14263s = C3168g.m12817a(this.f14253V);
  553.             this.f14268x.f664e = this.aa;
  554.             this.f210b.mo53a().mo31a(R.id.navigation, this.f14263s, "tag_navigation_fragment").mo34b();
  555.         }
  556.         C3428c c3428c = this.f14251T;
  557.         Flags flags = this.f14253V;
  558.         Fragment c3231o = new C3231o();
  559.         c3428c.f13182a.m13830a(c3231o);
  560.         c3231o.f12364a = c3428c.f13182a;
  561.         Fragment a = C3253r.m13251a(flags);
  562.         c3428c.f13183b.m13830a(a);
  563.         a.m13289a(c3428c.f13183b, c3428c.f13184c, c3428c.f13185d, c3428c.f13184c, c3428c.f13185d);
  564.         if (((Boolean) this.f14253V.mo2004a(C3195g.f12268w)).booleanValue()) {
  565.             this.f14258n.m13367a(C2430a.m10487a(this.f14253V), getString(R.string.app_name));
  566.         } else if (((Boolean) this.f14253V.mo2004a(C3195g.f12251f)).booleanValue() && ((((Boolean) this.f14253V.mo2004a(C3195g.f12253h)).booleanValue() || ((Boolean) this.f14253V.mo2004a(C3195g.f12252g)).booleanValue()) && getIntent().getBooleanExtra("extra_manual_login", false))) {
  567.             this.f14258n.m13367a(C2139a.m9368a(getString(R.string.browse_title), this.f14254W.f8509h, this.f14253V), getString(R.string.browse_title));
  568.         } else if (((Boolean) this.f14253V.mo2004a(C3195g.f12270y)).booleanValue()) {
  569.             this.f14258n.m13367a(C2139a.m9368a(getString(R.string.browse_title), this.f14254W.f8509h, this.f14253V), getString(R.string.browse_title));
  570.         } else if (((Boolean) this.f14253V.mo2004a(C3195g.f12266u)).booleanValue()) {
  571.             this.f14258n.m13367a(C2297e.m10015a(this.f14253V), getString(R.string.collection_title));
  572.         } else {
  573.             this.f14258n.m13367a(CollectionFragment.m9707a(this.f14253V), getString(R.string.collection_title));
  574.         }
  575.         onNewIntent(getIntent());
  576.         if (this.f14248Q.m11770a()) {
  577.             m14577k();
  578.         }
  579.         m14581m();
  580.         setVisible(true);
  581.         p_();
  582.         this.f14248Q.f11076d = true;
  583.         this.f14234C = true;
  584.     }
  585.  
  586.     protected void onCreate(Bundle bundle) {
  587.         MethodTraceScope.MAIN_ACTIVITY_ON_CREATE.m7146a();
  588.         FontSupport.m6628a(this);
  589.         if (((dk) C1424c.m7137a(dk.class)).f13859b) {
  590.             setTheme(R.style.Theme.Cat.Material.NoActionBar);
  591.         }
  592.         super.onCreate(bundle);
  593.         if (bundle == null) {
  594.             if (UninstallOldAppActivity.m11858a(this, getIntent())) {
  595.                 this.f14249R = false;
  596.                 finish();
  597.                 return;
  598.             } else if (C2923u.m11933a(this, getIntent())) {
  599.                 this.f14249R = false;
  600.                 finish();
  601.                 return;
  602.             }
  603.         }
  604.         this.f14264t = new C1662h(this);
  605.         C1424c.m7137a(C1887g.class);
  606.         this.f14265u = C1887g.m8666a(this);
  607.         C1630f c1630f = this.f14265u;
  608.         c1630f.f7833b.add(this.f14255X);
  609.         ActionBarManager.m11575a((Context) this);
  610.         if (bundle == null && "android.intent.action.MAIN".equals(getIntent().getAction())) {
  611.             this.f14241J = new ds();
  612.             C1785v.m8275b((Activity) this);
  613.             long currentTimeMillis = System.currentTimeMillis();
  614.             Bundle bundle2 = new Bundle();
  615.             bundle2.putLong("ARG_TIMESTAMP", currentTimeMillis);
  616.             TrackingService.m14456a(this, "TYPE_COLD_START", null, bundle2);
  617.         }
  618.         setVisible(false);
  619.         setContentView((int) R.layout.main);
  620.         m14579l();
  621.         this.f14262r = new ActionBarManager(this);
  622.         this.f14268x = (DrawerLayout) C1143e.m6299a(findViewById(R.id.drawer_layout), (Object) "Couldn't find R.id.drawer_layout");
  623.         this.f14269y = new C2790a(this, this.f14268x);
  624.         MainLayout mainLayout = (MainLayout) C1143e.m6299a(findViewById(R.id.content), (Object) "Couldn't find R.id.content");
  625.         this.f14258n = new C3285g(this, this.f210b, mainLayout);
  626.         this.f14267w = new C3110e();
  627.         this.f14250S = mainLayout.f12957a;
  628.         this.f14251T = new C3428c(this, this.f14250S);
  629.         this.f14239H = new ax(this.f14258n);
  630.         ((ah) C1424c.m7137a(ah.class)).mo2700a(this.f14239H);
  631.         if (bundle != null) {
  632.             this.f14270z = bundle.getBoolean("login_handled", false);
  633.             this.f14234C = bundle.getBoolean("ui_fragments_loaded", false);
  634.             this.f14237F = bundle.getBoolean("dialog_handler_added", false);
  635.             this.f14253V = C3198k.m12927a(bundle);
  636.             if (this.f14253V == null || !((Boolean) this.f14253V.mo2004a(C3195g.f12268w)).booleanValue()) {
  637.                 this.f14263s = (C3168g) this.f210b.mo52a("tag_navigation_fragment");
  638.                 this.f14268x.f664e = this.aa;
  639.             } else {
  640.                 r_().mo403a((int) R.drawable.icn_mft_home_back);
  641.             }
  642.             this.f14264t.m7776a(this.f14260p);
  643.             this.f14265u.m8660a(this.f14261q);
  644.             this.f14258n.m13366a(bundle.getBundle("navigation_state"));
  645.             if (bundle.containsKey("intent_queue")) {
  646.                 this.f14248Q = (MainActivityIntentQueue) bundle.getParcelable("intent_queue");
  647.             }
  648.         }
  649.         registerReceiver(this.f14257Z, m14562b("com.spotify.mobile.android.service.broadcast.session.SOCIAL_ERROR"));
  650.         IntentFilter b = m14562b("com.spotify.mobile.android.service.broadcast.session.UPDATE_AVAILABLE");
  651.         b.addDataScheme("http");
  652.         registerReceiver(this.f14256Y, b);
  653.         C3466a c3466a = this.f14246O;
  654.         C3467b c36022 = new C36022(this);
  655.         if (c3466a.f13586a != null) {
  656.             c3466a.f13586a.setNdefPushMessageCallback(new C34651(c3466a, c36022, this), this, new Activity[0]);
  657.         }
  658.         this.f14258n.m13369a(this.ab);
  659.         this.f14266v = new C1962b(this);
  660.         this.f14258n.m13369a(this.f14266v);
  661.         setVolumeControlStream(3);
  662.         this.f14247P = new C1622b(this);
  663.         this.f14250S.bringToFront();
  664.         this.f14249R = true;
  665.         MethodTraceScope.MAIN_ACTIVITY_ON_CREATE.m7148b();
  666.     }
  667.  
  668.     protected void onPostCreate(Bundle bundle) {
  669.         super.onPostCreate(bundle);
  670.         C2790a c2790a = this.f14269y;
  671.         if (c2790a.f10890a) {
  672.             c2790a.f10891b.m1857a();
  673.         }
  674.         ActionBarTitle a = this.f14258n.m13365a();
  675.         if (!TextUtils.isEmpty(a)) {
  676.             this.f14262r.m11580a(a);
  677.         }
  678.         ActionBarManager actionBarManager = this.f14262r;
  679.         actionBarManager.f10863h = new ActionBarTitle(this, getString(R.string.app_name), true);
  680.         actionBarManager.m11578a();
  681.     }
  682.  
  683.     public void onConfigurationChanged(Configuration configuration) {
  684.         super.onConfigurationChanged(configuration);
  685.         C2790a c2790a = this.f14269y;
  686.         if (c2790a.f10890a) {
  687.             c2790a.f10891b.m1861b();
  688.         }
  689.     }
  690.  
  691.     protected void onSaveInstanceState(Bundle bundle) {
  692.         bundle.putBoolean("login_handled", this.f14270z);
  693.         bundle.putBoolean("ui_fragments_loaded", this.f14234C);
  694.         bundle.putBoolean("dialog_handler_added", this.f14237F);
  695.         bundle.putBundle("navigation_state", this.f14258n.m13373d());
  696.         bundle.putParcelable("intent_queue", this.f14248Q);
  697.         bundle.putParcelable("FlagsArgumentHelper.Flags", this.f14253V);
  698.         this.f14236E = false;
  699.         super.onSaveInstanceState(bundle);
  700.     }
  701.  
  702.     protected void onDestroy() {
  703.         if (this.f14249R) {
  704.             ((ah) C1424c.m7137a(ah.class)).mo2702b(this.f14239H);
  705.             unregisterReceiver(this.f14256Y);
  706.             unregisterReceiver(this.f14257Z);
  707.             C1630f c1630f = this.f14265u;
  708.             c1630f.f7833b.remove(this.f14255X);
  709.             this.f14266v.f8745a.m8918b();
  710.             this.f14258n.m13371b(this.f14266v);
  711.             this.f14265u.mo1973b();
  712.         }
  713.         super.onDestroy();
  714.     }
  715.  
  716.     protected void onStart() {
  717.         super.onStart();
  718.         C2916m.m11911a((Context) this).m11912a();
  719.         this.f14236E = true;
  720.         this.f14247P.m7730j();
  721.         this.f14264t.m7757a();
  722.         this.f14265u.m7757a();
  723.         this.f14265u.m8660a((C1352d) this);
  724.         if (this.f14252U != null) {
  725.             C3556b c3556b = this.f14252U;
  726.             if (!c3556b.f13989a) {
  727.                 C0086o.m446a(c3556b.f13992d).m449a(c3556b.f13993e, new IntentFilter("ACTION_VIEW_LOAD_UPDATE"));
  728.                 c3556b.f13989a = true;
  729.             }
  730.         }
  731.     }
  732.  
  733.     protected void onStop() {
  734.         super.onStop();
  735.         if (this.f14247P.m7732l()) {
  736.             this.f14247P.m7731k();
  737.         }
  738.         C2916m.m11911a((Context) this).m11913b();
  739.         this.f14236E = false;
  740.         this.f14265u.m8662b(this);
  741.         if (this.f14270z) {
  742.             this.f14264t.m7778b(this.f14260p);
  743.         }
  744.         this.f14264t.mo1973b();
  745.         if (this.f14252U != null) {
  746.             this.f14252U.m14466a();
  747.         }
  748.     }
  749.  
  750.     protected void onPause() {
  751.         super.onPause();
  752.         BannerAdActivity.m8932b((Activity) this);
  753.         startService(SpotifyService.m7492a((Context) this, "com.spotify.mobile.android.service.action.client.BACKGROUND"));
  754.         this.f14248Q.f11073a = true;
  755.         if (this.f14238G != null) {
  756.             this.f14238G.cancel(false);
  757.         }
  758.         if (this.f14240I != null) {
  759.             this.f14240I.m14022a();
  760.             this.f14240I = null;
  761.         }
  762.     }
  763.  
  764.     public boolean onKeyDown(int i, KeyEvent keyEvent) {
  765.         if (i == 82 && ab.f13597e && "LGE".equals(Build.MANUFACTURER)) {
  766.             openOptionsMenu();
  767.             return true;
  768.         } else if (C3585y.m14514a(this.f14247P, keyEvent, this) || super.onKeyDown(i, keyEvent)) {
  769.             return true;
  770.         } else {
  771.             return false;
  772.         }
  773.     }
  774.  
  775.     protected void onUserLeaveHint() {
  776.         super.onUserLeaveHint();
  777.         C3253r c3253r = (C3253r) this.f210b.mo50a((int) R.id.player_preview);
  778.         if (c3253r != null) {
  779.             boolean z;
  780.             if (c3253r.f12415c != null) {
  781.                 c3253r.f12415c.m7751i();
  782.             }
  783.             if (c3253r.f12414b) {
  784.                 z = false;
  785.             } else {
  786.                 z = true;
  787.             }
  788.             c3253r.f12413a = z;
  789.             c3253r.f12414b = false;
  790.         }
  791.     }
  792.  
  793.     protected void onResume() {
  794.         super.onResume();
  795.         BannerAdActivity.m8930a((Activity) this);
  796.         startService(SpotifyService.m7492a((Context) this, "com.spotify.mobile.android.service.action.client.FOREGROUND"));
  797.         if (this.f14268x != null && this.f14268x.m1416d(3)) {
  798.             this.f14262r.m11579a(1.0f);
  799.         }
  800.         this.f14248Q.f11073a = false;
  801.     }
  802.  
  803.     protected final void n_() {
  804.         super.n_();
  805.         this.f14236E = true;
  806.         if (this.f14248Q.m11770a()) {
  807.             m14577k();
  808.         }
  809.     }
  810.  
  811.     private void m14577k() {
  812.         int i = 0;
  813.         if (this.f14248Q.m11770a()) {
  814.             MainActivityIntentQueue mainActivityIntentQueue = this.f14248Q;
  815.             Object c36109 = new C36109(this);
  816.             Assertion.m13888a(c36109, "Must supply a dispatcher");
  817.             Assertion.m13893a(mainActivityIntentQueue.m11770a(), "must have queued intent");
  818.             if (!mainActivityIntentQueue.f11074b && mainActivityIntentQueue.f11077e) {
  819.                 if ((!mainActivityIntentQueue.f11075c || mainActivityIntentQueue.f11073a) && !mainActivityIntentQueue.f11076d) {
  820.                     Object[] objArr = new Object[]{Boolean.valueOf(mainActivityIntentQueue.f11073a), Boolean.valueOf(mainActivityIntentQueue.f11075c), Boolean.valueOf(mainActivityIntentQueue.f11076d)};
  821.                 } else {
  822.                     i = 1;
  823.                 }
  824.             }
  825.             if (i != 0) {
  826.                 for (Intent a : mainActivityIntentQueue.f11078f) {
  827.                     c36109.mo2781a(a);
  828.                 }
  829.                 mainActivityIntentQueue.f11078f.clear();
  830.             }
  831.         }
  832.     }
  833.  
  834.     protected void onNewIntent(Intent intent) {
  835.         if (intent != null) {
  836.             m14579l();
  837.             String action = intent.getAction();
  838.             if ("com.spotify.mobile.android.ui.action.anonymous_signup.SHOW".equals(action)) {
  839.                 this.f14243L.m11598a(getApplication(), ViewUri.ar, SubEvent.USER_ACTION);
  840.                 Intent intent2 = new Intent(getApplication(), MainActivity.class);
  841.                 intent2.putExtra("extra_manual_login", true);
  842.                 intent2.putExtra("extra_anonymous_signup", true);
  843.                 startActivity(LoginActivity.m7452a(getApplication(), intent2));
  844.                 finish();
  845.                 return;
  846.             }
  847.             boolean z;
  848.             if ("com.spotify.mobile.android.ui.action.sdcard_alert.SHOW".equals(action) && this.f14236E) {
  849.                 ((C3544g) C1424c.m7137a(C3544g.class)).m14438a(this).mo2739a().mo2761a(SpotifyService.f7545c, true).mo2763b();
  850.                 new C3269w().mo1267a(this.f210b, "SdCardAlert");
  851.             }
  852.             setIntent(intent);
  853.             MainActivityIntentQueue mainActivityIntentQueue = this.f14248Q;
  854.             if (mainActivityIntentQueue.f11074b && "android.intent.action.VIEW".equals(intent.getAction())) {
  855.                 mainActivityIntentQueue.m11769a(intent);
  856.                 z = true;
  857.             } else if (mainActivityIntentQueue.f11073a) {
  858.                 mainActivityIntentQueue.m11769a(intent);
  859.                 z = true;
  860.             } else {
  861.                 z = false;
  862.             }
  863.             if (z) {
  864.                 mo2691g();
  865.                 return;
  866.             }
  867.             if ("com.facebook.application.174829003346".equals(intent.getAction())) {
  868.                 intent.setAction("android.intent.action.VIEW");
  869.             }
  870.             if ("android.intent.action.SEARCH".equals(action)) {
  871.                 m14559a(intent, false);
  872.             } else if ("android.media.action.MEDIA_PLAY_FROM_SEARCH".equals(action)) {
  873.                 if (SpotifyLink.m13976b(intent.getDataString())) {
  874.                     intent.setData(Uri.parse(new SpotifyLink(intent.getDataString()).m13986h()));
  875.                     m14558a(intent);
  876.                     return;
  877.                 }
  878.                 m14559a(intent, true);
  879.             } else if ("android.intent.action.VIEW".equals(action)) {
  880.                 m14558a(intent);
  881.             } else if ("android.nfc.action.NDEF_DISCOVERED".equals(action)) {
  882.                 m14558a(intent);
  883.             } else if ("com.spotify.mobile.android.ui.action.player.SHOW".equals(action)) {
  884.                 C2795d c2795d = this.f14244M;
  885.                 C2795d.m11618a((Activity) this);
  886.             }
  887.         }
  888.     }
  889.  
  890.     public final C3285g mo2688d() {
  891.         return this.f14258n;
  892.     }
  893.  
  894.     public boolean onOptionsItemSelected(MenuItem menuItem) {
  895.         if (menuItem.getItemId() == 16908332 && this.f14253V != null && ((Boolean) this.f14253V.mo2004a(C3195g.f12268w)).booleanValue()) {
  896.             if (!(this.f14258n.m13370b() instanceof C2430a)) {
  897.                 this.f14258n.m13368a(C2430a.m10487a(this.f14253V), getString(R.string.app_name), true);
  898.             }
  899.             return true;
  900.         }
  901.         boolean a;
  902.         C2790a c2790a = this.f14269y;
  903.         if (c2790a.f10890a) {
  904.             a = c2790a.f10891b.m1860a(menuItem);
  905.         } else {
  906.             if (c2790a.f10892c.m1416d(8388611)) {
  907.                 c2790a.f10892c.m1415c(8388611);
  908.             } else {
  909.                 c2790a.f10892c.m1413b(8388611);
  910.             }
  911.             a = true;
  912.         }
  913.         if (a) {
  914.             return true;
  915.         }
  916.         return super.onOptionsItemSelected(menuItem);
  917.     }
  918.  
  919.     public final boolean mo2690f() {
  920.         return this.f14268x.m1416d(3);
  921.     }
  922.  
  923.     public final void mo2691g() {
  924.         this.f14268x.m1415c(3);
  925.     }
  926.  
  927.     private void m14579l() {
  928.         DebugFlag debugFlag = DebugFlag.ENABLE_VIEW_LOAD_DISPLAY;
  929.         if (this.f14252U != null) {
  930.             this.f14252U.m14466a();
  931.             C3556b c3556b = this.f14252U;
  932.             c3556b.f13991c.removeView(c3556b.f13990b);
  933.             this.f14252U = null;
  934.         }
  935.     }
  936.  
  937.     public void onBackPressed() {
  938.         if (mo2690f()) {
  939.             mo2691g();
  940.         } else if ((this.f14259o == null || !this.f14259o.i_()) && !this.f14258n.m13372c()) {
  941.             finish();
  942.         }
  943.     }
  944.  
  945.     private void m14559a(Intent intent, boolean z) {
  946.         m14563b(intent.getStringExtra("query"), z, intent.getBooleanExtra("start_radio", false));
  947.     }
  948.  
  949.     private void m14558a(Intent intent) {
  950.         C1894e a;
  951.         String g;
  952.         SpotifyLink spotifyLink = new SpotifyLink(intent.getDataString());
  953.         if (spotifyLink.m13983e()) {
  954.             C3479c.m14083a(this, spotifyLink);
  955.         }
  956.         String stringExtra = intent.getStringExtra("title");
  957.         C3110e c3110e = this.f14267w;
  958.         String str = this.f14254W.f8509h;
  959.         boolean z = this.f14254W.f8504c;
  960.         String str2 = this.f14254W.f8503b;
  961.         Flags flags = this.f14253V;
  962.         C1143e.m6298a((Object) flags);
  963.         Bundle extras;
  964.         switch (C31091.f12022a[spotifyLink.f13571c.ordinal()]) {
  965.             case 1:
  966.                 a = new C2318m().m10163a(spotifyLink.m13980c()).m10165b("time_added").m10166c(stringExtra).m10164a(((Boolean) flags.mo2004a(C3195g.f12265t)).booleanValue(), flags);
  967.                 if (intent.hasExtra("playlist_uri")) {
  968.                     C3110e.m12452a(a, intent);
  969.                     break;
  970.                 }
  971.                 break;
  972.             case 2:
  973.                 a = C3155c.m12723a(spotifyLink.m13980c(), stringExtra, false, flags);
  974.                 if (C3155c.m12729b(intent)) {
  975.                     C3110e.m12452a(a, intent);
  976.                     break;
  977.                 }
  978.                 break;
  979.             case 3:
  980.                 a = C3162d.m12776a(spotifyLink.m13980c(), stringExtra, flags);
  981.                 break;
  982.             case 4:
  983.             case 5:
  984.             case 19:
  985.                 C2318m c = new C2318m().m10163a(spotifyLink.m13987i()).m10166c(stringExtra);
  986.                 c.f9683a.putString("lookup_track_uri", spotifyLink.m13985g());
  987.                 c.f9683a.putBoolean("autoplay", spotifyLink.m13984f());
  988.                 a = c.m10164a(((Boolean) flags.mo2004a(C3195g.f12265t)).booleanValue(), flags);
  989.                 if (intent.hasExtra("playlist_uri")) {
  990.                     C3110e.m12452a(a, intent);
  991.                     break;
  992.                 }
  993.                 break;
  994.             case 6:
  995.             case 7:
  996.                 a = C1895a.m8687a(spotifyLink.m13987i(), stringExtra, spotifyLink.m13985g(), spotifyLink.m13984f(), flags);
  997.                 if (C1895a.m8695b(intent)) {
  998.                     C3110e.m12452a(a, intent);
  999.                     break;
  1000.                 }
  1001.                 break;
  1002.             case 8:
  1003.             case 9:
  1004.                 stringExtra = spotifyLink.m13987i();
  1005.                 g = spotifyLink.m13985g();
  1006.                 boolean f = spotifyLink.m13984f();
  1007.                 Bundle bundle = new Bundle();
  1008.                 bundle.putString("track_uri", g);
  1009.                 bundle.putBoolean("autoplay", f);
  1010.                 a = new C2026e();
  1011.                 C2027f.m9113a(stringExtra, bundle, a);
  1012.                 C3198k.m12930a(a.mo2145t(), flags);
  1013.                 C1143e.m6298a((Object) intent);
  1014.                 if (intent.hasExtra("artist_uri")) {
  1015.                     C3110e.m12452a(a, intent);
  1016.                     break;
  1017.                 }
  1018.                 break;
  1019.             case 10:
  1020.                 stringExtra = spotifyLink.m13980c();
  1021.                 extras = intent.getExtras();
  1022.                 a = new C2019d();
  1023.                 C2027f.m9113a(stringExtra, extras, a);
  1024.                 break;
  1025.             case 11:
  1026.                 stringExtra = spotifyLink.m13980c();
  1027.                 extras = intent.getExtras();
  1028.                 a = new C2018c();
  1029.                 C2027f.m9113a(stringExtra, extras, a);
  1030.                 break;
  1031.             case 12:
  1032.                 stringExtra = spotifyLink.m13980c();
  1033.                 extras = intent.getExtras();
  1034.                 a = new C2014b();
  1035.                 C2027f.m9113a(stringExtra, extras, a);
  1036.                 break;
  1037.             case 13:
  1038.                 stringExtra = spotifyLink.m13980c();
  1039.                 extras = intent.getExtras();
  1040.                 a = new C2031g();
  1041.                 C2027f.m9113a(stringExtra, extras, a);
  1042.                 C3198k.m12930a(a.mo2145t(), flags);
  1043.                 break;
  1044.             case 14:
  1045.                 stringExtra = spotifyLink.m13980c();
  1046.                 extras = intent.getExtras();
  1047.                 a = new C2033h();
  1048.                 C2027f.m9113a(stringExtra, extras, a);
  1049.                 break;
  1050.             case 15:
  1051.             case 16:
  1052.             case 17:
  1053.             case 18:
  1054.                 stringExtra = spotifyLink.m13980c();
  1055.                 extras = intent.getExtras();
  1056.                 a = new C2037i();
  1057.                 C2027f.m9113a(stringExtra, extras, a);
  1058.                 C3198k.m12930a(a.mo2145t(), flags);
  1059.                 break;
  1060.             case 20:
  1061.                 a = C2760f.m11452a(spotifyLink.m13980c(), str2, stringExtra, flags);
  1062.                 break;
  1063.             case 21:
  1064.                 a = ProfilesListFragment.m11406a(spotifyLink.m13980c(), Type.FOLLOWERS, flags);
  1065.                 break;
  1066.             case 22:
  1067.                 a = ProfilesListFragment.m11406a(spotifyLink.m13980c(), Type.FOLLOWING, flags);
  1068.                 break;
  1069.             case 23:
  1070.                 a = C2754e.m11440a(spotifyLink.m13980c());
  1071.                 break;
  1072.             case C0242l.f1052k /*24*/:
  1073.                 if (!intent.getExtras().containsKey("artists-json")) {
  1074.                     a = C2765j.m11489a(spotifyLink.m13980c());
  1075.                     break;
  1076.                 }
  1077.                 a = new C2765j();
  1078.                 C3110e.m12452a(a, intent);
  1079.                 break;
  1080.             case C0242l.f1058q /*25*/:
  1081.                 a = C2752c.m11425a(spotifyLink, flags);
  1082.                 break;
  1083.             case C0242l.f1055n /*26*/:
  1084.                 a = C2419c.m10454a(flags);
  1085.                 break;
  1086.             case 27:
  1087.                 a = ProfilesListFragment.m11406a(spotifyLink.m13980c(), Type.FOLLOW_FACEBOOK, flags);
  1088.                 break;
  1089.             case 28:
  1090.                 a = ProfilesListFragment.m11406a(spotifyLink.m13980c(), Type.FOLLOW_ARTISTS, flags);
  1091.                 break;
  1092.             case 29:
  1093.                 a = C2499c.m10696a(flags);
  1094.                 break;
  1095.             case 30:
  1096.                 a = C2139a.m9368a(stringExtra, str, flags);
  1097.                 break;
  1098.             case 31:
  1099.                 a = C2150b.m9405a(stringExtra, str, flags);
  1100.                 break;
  1101.             case 32:
  1102.                 a = C2154d.m9456a(stringExtra, str, flags);
  1103.                 break;
  1104.             case 33:
  1105.                 a = C2153c.m9437a(stringExtra, str, intent, flags);
  1106.                 break;
  1107.             case 34:
  1108.                 if (!"Enabled".equals(flags.mo2004a(C3195g.f12243X)) && !((Boolean) flags.mo2004a(C3195g.f12261p)).booleanValue()) {
  1109.                     a = C3110e.f12023a;
  1110.                     break;
  1111.                 } else {
  1112.                     a = C2201d.m9578a(stringExtra, flags);
  1113.                     break;
  1114.                 }
  1115.                 break;
  1116.             case 35:
  1117.                 if (!"Enabled".equals(flags.mo2004a(C3195g.f12243X)) && !((Boolean) flags.mo2004a(C3195g.f12261p)).booleanValue()) {
  1118.                     a = C3110e.f12023a;
  1119.                     break;
  1120.                 } else {
  1121.                     a = C2197c.m9566a(spotifyLink.m13980c(), stringExtra, flags);
  1122.                     break;
  1123.                 }
  1124.                 break;
  1125.             case 36:
  1126.                 if (!"Enabled".equals(flags.mo2004a(C3195g.f12243X)) && !((Boolean) flags.mo2004a(C3195g.f12261p)).booleanValue()) {
  1127.                     a = C3110e.f12023a;
  1128.                     break;
  1129.                 } else {
  1130.                     a = C2194a.m9545a(spotifyLink.m13980c(), stringExtra, flags);
  1131.                     break;
  1132.                 }
  1133.                 break;
  1134.             case 37:
  1135.                 if (!((Boolean) flags.mo2004a(C3195g.f12233N)).booleanValue()) {
  1136.                     a = C3110e.f12023a;
  1137.                     break;
  1138.                 } else {
  1139.                     a = C2395a.m10339a(flags);
  1140.                     break;
  1141.                 }
  1142.             case 38:
  1143.                 if (!((Boolean) flags.mo2004a(C3195g.f12233N)).booleanValue()) {
  1144.                     a = C3110e.f12023a;
  1145.                     break;
  1146.                 } else {
  1147.                     a = C2402c.m10362a(flags, intent.getStringExtra("key_songid"));
  1148.                     break;
  1149.                 }
  1150.             case 39:
  1151.                 if (!C3681a.m14755a(flags)) {
  1152.                     a = C3264t.m13315a(stringExtra, flags);
  1153.                     break;
  1154.                 } else {
  1155.                     a = C3678a.m14732a(stringExtra, flags);
  1156.                     break;
  1157.                 }
  1158.             case 40:
  1159.                 a = C3149b.m12678a(flags);
  1160.                 break;
  1161.             case 41:
  1162.                 if (!((Boolean) flags.mo2004a(C3195g.f12268w)).booleanValue()) {
  1163.                     a = C3110e.f12023a;
  1164.                     break;
  1165.                 } else {
  1166.                     a = C2430a.m10487a(flags);
  1167.                     break;
  1168.                 }
  1169.             case 42:
  1170.             case 43:
  1171.                 if (spotifyLink.f13571c != LinkType.HOME || !((Boolean) flags.mo2004a(C3195g.f12268w)).booleanValue()) {
  1172.                     if (spotifyLink.f13571c != LinkType.HOME || !((Boolean) flags.mo2004a(C3195g.f12252g)).booleanValue()) {
  1173.                         if (((Boolean) flags.mo2004a(C3195g.f12248c)).booleanValue()) {
  1174.                             if (!C3640a.m14636a(flags)) {
  1175.                                 a = C2409a.m10393a(stringExtra, flags);
  1176.                                 break;
  1177.                             } else {
  1178.                                 a = C3640a.m14633a(stringExtra);
  1179.                                 break;
  1180.                             }
  1181.                         }
  1182.                         Assertion.m13895b("Falling through to BrowseStartFragment");
  1183.                         a = C2139a.m9368a(stringExtra, str, flags);
  1184.                         break;
  1185.                     }
  1186.                     a = C2139a.m9368a(stringExtra, str, flags);
  1187.                     break;
  1188.                 }
  1189.                 a = C2430a.m10487a(flags);
  1190.                 break;
  1191.             case 44:
  1192.                 if (!((Boolean) flags.mo2004a(C3195g.f12230K)).booleanValue()) {
  1193.                     a = C3110e.f12023a;
  1194.                     break;
  1195.                 } else {
  1196.                     a = C2684b.m11239a(flags);
  1197.                     break;
  1198.                 }
  1199.             case 45:
  1200.                 if (!((Boolean) flags.mo2004a(C3195g.f12229J)).booleanValue()) {
  1201.                     a = C3110e.f12023a;
  1202.                     break;
  1203.                 } else {
  1204.                     a = C2658e.m11178b(intent);
  1205.                     break;
  1206.                 }
  1207.             case 46:
  1208.                 if (!((Boolean) flags.mo2004a(C3195g.f12230K)).booleanValue()) {
  1209.                     a = C3110e.f12023a;
  1210.                     break;
  1211.                 } else {
  1212.                     a = C2676a.m11228a(intent, flags);
  1213.                     break;
  1214.                 }
  1215.             case 47:
  1216.                 if (((Boolean) flags.mo2004a(C3195g.f12231L)).booleanValue() && !((Boolean) flags.mo2004a(C3195g.f12270y)).booleanValue()) {
  1217.                     a = ActivityFeedFragment.m8813a(flags);
  1218.                     break;
  1219.                 } else {
  1220.                     a = C3110e.f12023a;
  1221.                     break;
  1222.                 }
  1223.                 break;
  1224.             case 48:
  1225.                 if ((((Integer) flags.mo2004a(C3195g.f12235P)).intValue() & 2) != 2) {
  1226.                     a = C3110e.f12023a;
  1227.                     break;
  1228.                 }
  1229.                 g = intent.getStringExtra("com.spotify.activity_feed.type.profile_username");
  1230.                 C1143e.m6299a((Object) g, (Object) "profile username must be specified for recent shares");
  1231.                 a = ActivityFeedFragment.m8814a(g, str2, flags);
  1232.                 break;
  1233.             case 49:
  1234.                 if (!((Boolean) flags.mo2004a(C3195g.f12231L)).booleanValue()) {
  1235.                     a = C3110e.f12023a;
  1236.                     break;
  1237.                 } else {
  1238.                     a = C1932a.m8854b(intent);
  1239.                     break;
  1240.                 }
  1241.             case 50:
  1242.                 a = C3273x.m13348a(flags);
  1243.                 break;
  1244.             case 51:
  1245.                 a = C3110e.f12023a;
  1246.                 break;
  1247.             case 52:
  1248.                 if (!((Boolean) flags.mo2004a(C3195g.f12270y)).booleanValue()) {
  1249.                     if (!((Boolean) flags.mo2004a(C3195g.f12266u)).booleanValue()) {
  1250.                         a = CollectionFragment.m9707a(flags);
  1251.                         break;
  1252.                     } else {
  1253.                         a = C2297e.m10015a(flags);
  1254.                         break;
  1255.                     }
  1256.                 }
  1257.                 a = C3110e.f12023a;
  1258.                 break;
  1259.             case 53:
  1260.                 a = C3110e.m12451a(flags, C2317l.m10113a(false, flags, z));
  1261.                 break;
  1262.             case 54:
  1263.                 a = C3110e.m12451a(flags, C2274b.m9853a(false, flags, z, str2));
  1264.                 break;
  1265.             case 55:
  1266.                 a = C3110e.m12451a(flags, C2291d.m9969a(false, flags, z));
  1267.                 break;
  1268.             case 56:
  1269.                 a = C3110e.m12451a(flags, C2307k.m10058a(false, flags, z));
  1270.                 break;
  1271.             case 57:
  1272.                 a = C2262a.m9780a(spotifyLink.m13980c(), stringExtra, false, flags);
  1273.                 break;
  1274.             case 58:
  1275.                 a = C2285c.m9910a(spotifyLink.m13980c(), stringExtra, false, flags);
  1276.                 break;
  1277.             case 59:
  1278.                 ((Boolean) flags.mo2004a(C3195g.f12267v)).booleanValue();
  1279.                 a = C3110e.f12023a;
  1280.                 break;
  1281.             case 60:
  1282.                 ((Boolean) flags.mo2004a(C3195g.f12267v)).booleanValue();
  1283.                 a = C3110e.f12023a;
  1284.                 break;
  1285.             case 61:
  1286.                 a = C2435b.m10504a(flags);
  1287.                 break;
  1288.             case 62:
  1289.                 ((Boolean) flags.mo2004a(C3195g.f12267v)).booleanValue();
  1290.                 a = C3110e.f12023a;
  1291.                 break;
  1292.             case 63:
  1293.                 a = NotificationSettingsFragment.m12493a(flags);
  1294.                 break;
  1295.             case 64:
  1296.                 a = new C3163f();
  1297.                 break;
  1298.             case 65:
  1299.                 a = new CosmosTestFragment();
  1300.                 break;
  1301.             default:
  1302.                 a = null;
  1303.                 break;
  1304.         }
  1305.         if (intent.hasExtra("referer")) {
  1306.             Intent intent2 = new Intent();
  1307.             intent2.putExtra("referer", intent.getStringExtra("referer"));
  1308.             C3110e.m12452a(a, intent2);
  1309.         }
  1310.         if (a == null || dt.m14280b(a, C3110e.f12023a)) {
  1311.             C2795d c2795d;
  1312.             C2792a c2792a;
  1313.             switch (spotifyLink.f13571c) {
  1314.                 case TRACK:
  1315.                     if (((Boolean) this.f14253V.mo2004a(C3195g.f12253h)).booleanValue()) {
  1316.                         if (this.f14240I != null) {
  1317.                             this.f14240I.m14022a();
  1318.                         }
  1319.                         this.f14240I = new ae(this, spotifyLink, new af(this) {
  1320.                             final /* synthetic */ MainActivity f14220a;
  1321.  
  1322.                             {
  1323.                                 this.f14220a = r1;
  1324.                             }
  1325.  
  1326.                             public final void mo2776a() {
  1327.                                 this.f14220a.f14240I = null;
  1328.                             }
  1329.  
  1330.                             public final void mo2777a(String str) {
  1331.                                 this.f14220a.startActivity(MainActivity.m14553a(this.f14220a, str));
  1332.                             }
  1333.                         });
  1334.                         ae aeVar = this.f14240I;
  1335.                         aeVar.f13611c.m14186a(Track.m7371a(aeVar.f13610b.m13980c()), ae.f13609a, null);
  1336.                         return;
  1337.                     }
  1338.                     c2795d = this.f14244M;
  1339.                     C2795d.m11622a((Context) this, ViewUri.f14121b, Track.m7371a(spotifyLink.m13980c()), this.f14253V);
  1340.                     c2795d = this.f14244M;
  1341.                     C2795d.m11618a((Activity) this);
  1342.                     return;
  1343.                 case RADIO_START:
  1344.                     g = dc.m14229a(spotifyLink.m13980c());
  1345.                     C2795d c2795d2 = this.f14244M;
  1346.                     C2795d.m11629a((Context) this, g, ViewUri.f14124e, this.f14253V);
  1347.                     c2795d = this.f14244M;
  1348.                     C2795d.m11618a((Activity) this);
  1349.                     return;
  1350.                 case SEARCH:
  1351.                     g = spotifyLink.m13981c(":");
  1352.                     if ("spotify.internal_crash".equals(g)) {
  1353.                         startService(SpotifyService.m7492a((Context) this, "com.spotify.mobile.android.service.action.CRASH_SERVICE"));
  1354.                         return;
  1355.                     } else {
  1356.                         m14563b(g, false, intent.getBooleanExtra("start_radio", false));
  1357.                         return;
  1358.                     }
  1359.                 case PREMIUM_SIGNUP:
  1360.                     c2792a = this.f14243L;
  1361.                     C2792a.m11588a((Context) this, ViewUri.f14121b, SubView.NONE);
  1362.                     return;
  1363.                 case PUSH_NOTIFICATION_WEBVIEW:
  1364.                     c2792a = this.f14243L;
  1365.                     Flags flags2 = this.f14253V;
  1366.                     C2792a.m11589a((Context) this, ViewUri.f14121b, SubView.NONE, new ClientEvent(Event.PUSH_NOTIFICATION_WEB));
  1367.                     startActivity(NotificationWebViewActivity.m11771a(this, spotifyLink, flags2));
  1368.                     return;
  1369.                 case AUDIO_AD:
  1370.                     c2795d = this.f14244M;
  1371.                     C2795d.m11628a((Context) this, spotifyLink.m13980c());
  1372.                     return;
  1373.                 case START_TRIAL_UPSELL:
  1374.                     startActivity(UpsellDialogActivity.m11958a(this, 7, this.f14253V));
  1375.                     return;
  1376.                 case UPSELL_PREMIUM:
  1377.                     startActivity(PremiumUpsellInterstitialActivity.m11890a((Context) this));
  1378.                     return;
  1379.                 case DEBUG:
  1380.                     return;
  1381.                 case ACTIVITY_FEED:
  1382.                 case COLLECTION:
  1383.                     if (((Boolean) this.f14253V.mo2004a(C3195g.f12270y)).booleanValue()) {
  1384.                         C3191f.m12906a((Context) this, 3);
  1385.                         return;
  1386.                     }
  1387.                     return;
  1388.                 case DUMMY:
  1389.                     Uri data = intent.getData();
  1390.                     if (data != null && data.toString().startsWith("https://www.spotify.com/redirect/get-premium/")) {
  1391.                         C2792a c2792a2 = this.f14243L;
  1392.                         C2792a.m11585a((Context) this, data, ViewUri.f14121b, SubView.NONE, null);
  1393.                         return;
  1394.                     }
  1395.                     return;
  1396.                 default:
  1397.                     bq.m14131c("B0rken url is '%s'", intent.getDataString());
  1398.                     Assertion.m13889a("If you end up here, SpotifyLink is b0rken.");
  1399.                     return;
  1400.             }
  1401.         }
  1402.         m14560a(a, intent.getBooleanExtra("extra_clear_backstack", false));
  1403.     }
  1404.  
  1405.     public boolean onSearchRequested() {
  1406.         if (!(this.f14258n.m13370b() instanceof C2553c)) {
  1407.             startActivity(m14555a(this, ViewUri.f14098E.toString(), null, null));
  1408.         }
  1409.         return false;
  1410.     }
  1411.  
  1412.     private void m14563b(String str, boolean z, boolean z2) {
  1413.         String str2 = this.f14254W.f8503b;
  1414.         Flags flags = this.f14253V;
  1415.         DebugFlag debugFlag = DebugFlag.SEARCH_V3;
  1416.         C1894e c2556e = new C2556e();
  1417.         Bundle bundle = new Bundle();
  1418.         bundle.putString("search_query", str);
  1419.         bundle.putString("username", str2);
  1420.         bundle.putBoolean("start_playback", z);
  1421.         bundle.putBoolean("start_radio", z2);
  1422.         c2556e.m76f(bundle);
  1423.         C3198k.m12930a((Fragment) c2556e, flags);
  1424.         m14560a(c2556e, false);
  1425.     }
  1426.  
  1427.     public final void q_() {
  1428.         p_();
  1429.     }
  1430.  
  1431.     public boolean onPreparePanel(int i, View view, Menu menu) {
  1432.         if (this.f14262r.f10862g) {
  1433.             return false;
  1434.         }
  1435.         return super.onPreparePanel(i, view, menu);
  1436.     }
  1437.  
  1438.     public void setTitle(CharSequence charSequence) {
  1439.         Assertion.m13889a("Don't call setTitle() directly, use setTitleForFragment() instead.");
  1440.     }
  1441.  
  1442.     public final void mo2686a(Fragment fragment, String str) {
  1443.         mo2685a(fragment, new ActionBarTitle(this, str));
  1444.     }
  1445.  
  1446.     public final void mo2685a(Fragment fragment, ActionBarTitle actionBarTitle) {
  1447.         C3285g c3285g = this.f14258n;
  1448.         Iterator it = c3285g.f12466d.iterator();
  1449.         while (it.hasNext()) {
  1450.             C3286k c3286k = (C3286k) it.next();
  1451.             if (c3286k.mo2628a() == 2) {
  1452.                 c3286k = c3286k.mo2632c(null);
  1453.                 if (c3286k.m13388d() == fragment) {
  1454.                     c3286k.f12469h = actionBarTitle;
  1455.                     break;
  1456.                 }
  1457.             }
  1458.         }
  1459.         this.f14262r.m11580a(c3285g.m13365a());
  1460.     }
  1461.  
  1462.     private void m14560a(C1894e c1894e, boolean z) {
  1463.         this.f14258n.m13368a(c1894e.mo2145t(), c1894e.mo2142a(this), z);
  1464.     }
  1465.  
  1466.     public final void mo1677a(C1882a c1882a) {
  1467.         boolean z = true;
  1468.         if (c1882a != null && !isFinishing()) {
  1469.             this.f14254W = c1882a;
  1470.             if (!c1882a.f8506e) {
  1471.                 if (!c1882a.f8505d || c1882a.f8507f) {
  1472.                     Intent intent = getIntent();
  1473.                     if (this.f14270z) {
  1474.                         intent = new Intent(this, MainActivity.class);
  1475.                     }
  1476.                     intent.putExtra("extra_manual_login", true);
  1477.                     m14581m();
  1478.                     TrackingService.m14456a(this, "TYPE_COLD_START_CANCEL", null, new Bundle());
  1479.                     String action = intent.getAction();
  1480.                     if ("android.intent.action.VIEW".equals(action) || "android.media.action.MEDIA_PLAY_FROM_SEARCH".equals(action)) {
  1481.                         action = intent.getDataString();
  1482.                         if (SpotifyLink.m13976b(action)) {
  1483.                             switch (C24801.f10068a[new SpotifyLink(action).f13571c.ordinal()]) {
  1484.                                 case 1:
  1485.                                 case 2:
  1486.                                 case 3:
  1487.                                 case 4:
  1488.                                     break;
  1489.                                 default:
  1490.                                     z = false;
  1491.                                     break;
  1492.                             }
  1493.                             if (z) {
  1494.                                 startActivity(LoginActivity.m7452a((Context) this, intent));
  1495.                             } else {
  1496.                                 startActivity(OpenAccessActivity.m10522a(this, intent));
  1497.                             }
  1498.                             finish();
  1499.                             return;
  1500.                         }
  1501.                     }
  1502.                     z = false;
  1503.                     if (z) {
  1504.                         startActivity(LoginActivity.m7452a((Context) this, intent));
  1505.                     } else {
  1506.                         startActivity(OpenAccessActivity.m10522a(this, intent));
  1507.                     }
  1508.                     finish();
  1509.                     return;
  1510.                 }
  1511.                 this.f14235D = c1882a.f8508g;
  1512.                 this.f14242K.sendEmptyMessage(0);
  1513.             }
  1514.         }
  1515.     }
  1516.  
  1517.     public static Intent m14555a(Context context, String str, String str2, Bundle bundle) {
  1518.         Assertion.m13884a((CharSequence) str, "Don't call with empty URI");
  1519.         Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(str));
  1520.         intent.setClass(context, MainActivity.class);
  1521.         intent.setFlags(67108864);
  1522.         intent.putExtra("title", str2);
  1523.         if (bundle != null) {
  1524.             intent.putExtras(bundle);
  1525.         }
  1526.         return intent;
  1527.     }
  1528.  
  1529.     public static Intent m14552a(Context context, C1510c c1510c, int i) {
  1530.         C1143e.m6298a((Object) context);
  1531.         C1143e.m6298a((Object) c1510c);
  1532.         switch (c1510c.f7265a) {
  1533.             case PLAYLIST:
  1534.                 C2318m c = new C2318m().m10163a(c1510c.f7268d.m13980c()).m10166c(c1510c.f7266b);
  1535.                 c.f9683a.putInt("reveal_row", i);
  1536.                 return c.m10161a(context);
  1537.             case GENRE_RADIO:
  1538.             case GENRE:
  1539.                 return null;
  1540.             default:
  1541.                 return m14555a(context, c1510c.f7268d.m13980c(), c1510c.f7266b, null);
  1542.         }
  1543.     }
  1544.  
  1545.     public static Intent m14554a(Context context, String str, String str2) {
  1546.         return m14555a(context, str, str2, null);
  1547.     }
  1548.  
  1549.     public static Intent m14553a(Context context, String str) {
  1550.         return m14555a(context, str, null, null);
  1551.     }
  1552.  
  1553.     public static Intent m14561b(Context context, String str) {
  1554.         Intent a = m14555a(context, str, null, null);
  1555.         a.putExtra("extra_clear_backstack", true);
  1556.         return a;
  1557.     }
  1558.  
  1559.     private void m14581m() {
  1560.         if (this.f14241J != null) {
  1561.             double a = ((double) this.f14241J.m14275a()) / 1000.0d;
  1562.             ClientEvent clientEvent = new ClientEvent(Event.STARTUP);
  1563.             clientEvent.m13901a("time-taken", String.valueOf(a));
  1564.             clientEvent.m13901a("android_application_id", getPackageName());
  1565.             C1424c.m7137a(C2792a.class);
  1566.             C2792a.m11587a((Context) this, ViewUri.f14120a, clientEvent);
  1567.             this.f14241J = null;
  1568.         }
  1569.     }
  1570.  
  1571.     public final void mo2687a(C2025r c2025r) {
  1572.         this.f14259o = c2025r;
  1573.     }
  1574.  
  1575.     public final Context mo2689e() {
  1576.         return this;
  1577.     }
  1578. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement