正在查看: Mint v5.7.3 应用的 LeftMenuFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 LeftMenuFragment.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.htmedia.mint.ui.fragments;
import android.app.ActivityOptions;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.view.MenuItemCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import com.comscore.Analytics;
import com.htmedia.mint.AppController;
import com.htmedia.mint.htsubscription.CheckSubscriptionFromLocal;
import com.htmedia.mint.htsubscription.SubscriptionPlanSingleton;
import com.htmedia.mint.htsubscription.SubscriptionTrigger;
import com.htmedia.mint.htsubscription.WebEngageAnalytices;
import com.htmedia.mint.pojo.Content;
import com.htmedia.mint.pojo.NotificationPojo;
import com.htmedia.mint.pojo.Podcast;
import com.htmedia.mint.pojo.Result;
import com.htmedia.mint.pojo.SectionData;
import com.htmedia.mint.pojo.SocialResponsePojo;
import com.htmedia.mint.pojo.config.Config;
import com.htmedia.mint.pojo.config.Section;
import com.htmedia.mint.ui.activity.HomeActivity;
import com.htmedia.mint.ui.activity.NewsLetterActivityNew;
import com.htmedia.mint.ui.activity.SettingsActivity;
import com.htmedia.mint.ui.activity.WebViewActivityWithHeader;
import com.htmedia.mint.ui.fragments.leftmenudrawer.model.LeftDrawerResponseParent;
import com.htmedia.mint.utils.n;
import com.htmedia.mint.utils.q;
import com.htmedia.mint.whymintsubscribe.ui.activities.WhyMintSubscribeActivity;
import com.htmedia.sso.activities.LoginRegisterActivity;
import com.htmedia.sso.helpers.SSOSingleton;
import com.htmedia.sso.helpers.WebEngageNewSSOEvents;
import com.thoughtbot.expandablerecyclerview.BuildConfig;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import q7.y6;
import x4.y50;
public class LeftMenuFragment extends Fragment implements k6.v1, e7.c, y6.c, k6.l1 {
private static final String EXPLORE = "Explore";
private static final String SCREEN_NAME = "Explore";
private int badgeCount;
private y50 binding;
private Config config;
private ViewGroup footer;
LinearLayout header;
private HashMap<String, String> headers;
private ImageView imgNotification;
private boolean isPodcast;
private LinearLayout layoutClose;
y6 listAdapter;
private com.htmedia.mint.utils.q1 lotameClass;
private MenuItem menuItem;
private TextView notificationBadge;
private String podcastName;
private String podcastUrl;
private ArrayList<Result> results;
private SectionData sectionData;
k6.u1 sectionPresenter;
private String serverUrl = BuildConfig.FLAVOR;
private List<Section> sectionArrayList = new ArrayList();
private void checkSubscriptionStatus(TextView textView, View view) {
if (!((AppController.j().g() == null || AppController.j().g().getSubscription() == null || !AppController.j().g().getSubscription().isSubscriptionEnable()) ? false : true)) {
textView.setVisibility(8);
view.setVisibility(8);
} else if (CheckSubscriptionFromLocal.isSubscribedUser(getActivity())) {
textView.setVisibility(8);
view.setVisibility(8);
} else {
textView.setVisibility(0);
view.setVisibility(0);
}
}
private String findNotificationCenterURL(Config config) {
List<Section> others = config.getOthers();
int size = others.size();
for (int i = 0; i < size; i++) {
Section section = others.get(i);
if (section.getId().trim().equalsIgnoreCase(q.z.NOTIFICATION.getId())) {
return section.getUrl();
}
}
return null;
}
private void goToMintPillerViewAllFragment() {
FragmentManager supportFragmentManager = getActivity().getSupportFragmentManager();
supportFragmentManager.beginTransaction().add(2131429286, new MintPillerViewAllFragment(), "Mint_piller_view_all_TAG").addToBackStack("Mint_piller_view_all_TAG").commitAllowingStateLoss();
}
public void lambda$refreshFooterView$12(View view) {
new v7.g(getActivity()).show();
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/" + getString(2131952457));
}
public void lambda$refreshFooterView$13(View view) {
try {
Intent intent = new Intent("android.intent.action.SEND");
intent.setType("text/plain");
intent.putExtra("android.intent.extra.SUBJECT", getActivity().getResources().getString(2131951702));
intent.putExtra("android.intent.extra.TEXT", "Stay connected with latest Business and markets news, download Mint App https://play.google.com/store/apps/details?id=com.htmedia.mint");
startActivity(Intent.createChooser(intent, BuildConfig.FLAVOR));
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/Share App");
} catch (Exception e) {
e.printStackTrace();
}
}
public void lambda$refreshFooterView$14(int i, int i2, View view) {
Section section;
try {
if (i == i2 - 3) {
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/" + "EXPLORE APPS".replace(' ', '-'));
com.htmedia.mint.utils.n.M(getContext(), com.htmedia.mint.utils.n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Explore Apps");
FragmentManager supportFragmentManager = getActivity().getSupportFragmentManager();
if (getActivity() instanceof HomeActivity) {
getActivity().j4("EXPLORE APPS", false);
}
supportFragmentManager.beginTransaction().add(2131429286, new ExploreAppsFragment(), "EXPLORE APPS").addToBackStack("EXPLORE APPS").commitAllowingStateLoss();
return;
}
if (i == i2 - 2) {
openSettingSection();
return;
}
if (i == i2 - 1 || (section = AppController.j().g().getSettings().get(i)) == null) {
return;
}
com.htmedia.mint.utils.n.M(getContext(), com.htmedia.mint.utils.n.U1, BuildConfig.FLAVOR, null, section.getUrl(), section.getDisplayName());
if (section.getDisplayName().equalsIgnoreCase("feedback")) {
com.htmedia.mint.utils.f0.j3(getActivity(), "[email protected]", getString(2131951827), com.htmedia.mint.utils.f0.t1());
} else {
openPageWRTTamplate(section, i);
}
} catch (Exception e) {
e.printStackTrace();
com.htmedia.mint.utils.o0.g(e, "LeftMenuFragment");
}
}
public void lambda$refreshHeaderView$15(View view) {
String url = AppController.j().g().getEpaper().getUrl();
if (TextUtils.isEmpty(url)) {
return;
}
if (!url.startsWith("http")) {
url = AppController.j().g().getServerUrl() + url;
}
SSOSingleton.getInstance().setPreviousScreenReferrer(n.a.EXPLORE.a());
Bundle bundle = new Bundle();
bundle.putString(com.htmedia.mint.utils.n.X, "explore_menu");
com.htmedia.mint.utils.n.l0(getContext(), com.htmedia.mint.utils.n.s1, bundle);
com.htmedia.mint.utils.f0.e = "Paywall";
com.htmedia.mint.utils.f0.A2(getActivity(), url + "?utm_source=androidapp&utm_medium=topnav&utm_campaign=promo");
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/Mint e-paper");
}
public void lambda$setExpListViewAdapterAndData$0(View view) {
startActivity(new Intent((Context) getActivity(), (Class<?>) WhyMintSubscribeActivity.class));
}
public void lambda$setExpListViewAdapterAndData$1(View view) {
getActivity().i0.a.b.setVisibility(0);
getActivity().i0.a.b.setSelectedItemId(801);
}
public void lambda$setExpListViewAdapterAndData$10(Config config, View view) {
com.htmedia.mint.utils.n.M(getContext(), com.htmedia.mint.utils.n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, getString(2131952016));
Section section = new Section();
section.setDisplayName(getString(2131952016));
section.setId("freemium");
section.setUrl(config.getFreemium().getUrl());
openSection(section);
}
public void lambda$setExpListViewAdapterAndData$11(View view) {
com.htmedia.mint.utils.n.M(getContext(), com.htmedia.mint.utils.n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Search");
FragmentManager supportFragmentManager = getActivity().getSupportFragmentManager();
y6.c cVar = new y6.c();
cVar.setArguments(new Bundle());
supportFragmentManager.beginTransaction().add(2131429286, cVar, "Search_Revamp").addToBackStack("Search_Revamp").commit();
getActivity().f4(false, BuildConfig.FLAVOR);
}
public void lambda$setExpListViewAdapterAndData$2(View view) {
getActivity().i0.a.b.setVisibility(0);
getActivity().getSupportFragmentManager().popBackStack();
getActivity().i0.a.b.setSelectedItemId(401);
}
public void lambda$setExpListViewAdapterAndData$3(View view) {
getActivity().i0.a.b.setVisibility(0);
goToMintPillerViewAllFragment();
}
public void lambda$setExpListViewAdapterAndData$4(View view) {
if (this.podcastUrl.contains("/podcasts")) {
openPodCastNavtive();
}
}
public void lambda$setExpListViewAdapterAndData$5(View view) {
WebEngageAnalytices.trackClickEvents("Hamburger_Subscribe", (String) null, (String) null, (Content) null, "Explore", BuildConfig.FLAVOR, BuildConfig.FLAVOR);
Bundle bundle = new Bundle();
bundle.putString(com.htmedia.mint.utils.n.X, "explore_menu");
com.htmedia.mint.utils.n.l0(getActivity(), com.htmedia.mint.utils.n.t1, bundle);
Intent openPlanPageIntent = SubscriptionTrigger.openPlanPageIntent(getActivity(), "others", false);
openPlanPageIntent.putExtra("planpagecta", q.x.EXPLORE.ordinal());
openPlanPageIntent.putExtra("urlkey", "https://accounts.hindustantimes.com/lm/userplan");
openPlanPageIntent.putExtra("keybuttonName", "Subscribe_Explore");
openPlanPageIntent.putExtra("funnelName", "Explore");
SubscriptionPlanSingleton.getInstance().setContent((Content) null);
SSOSingleton.getInstance().setPlanPageReason("explore");
SSOSingleton.getInstance().setPaywallReson(BuildConfig.FLAVOR);
SubscriptionPlanSingleton.getInstance().setPianoExpName(BuildConfig.FLAVOR);
getActivity().startActivityForResult(openPlanPageIntent, 1009);
}
public void lambda$setExpListViewAdapterAndData$6(TextView textView, Config config, View view) {
Context context = getContext();
String str = com.htmedia.mint.utils.n.U1;
String[] strArr = new String[1];
strArr[0] = textView.getText() == null ? BuildConfig.FLAVOR : textView.getText().toString();
com.htmedia.mint.utils.n.M(context, str, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, strArr);
FragmentManager supportFragmentManager = getActivity().getSupportFragmentManager();
if (getActivity() instanceof HomeActivity) {
getActivity().j4("MY READS", false);
}
this.lotameClass.c(null, BuildConfig.FLAVOR, BuildConfig.FLAVOR, "My Read");
MyReadsFragment myReadsFragment = new MyReadsFragment();
Bundle bundle = new Bundle();
bundle.putString(com.htmedia.mint.utils.n.X, "Explore");
bundle.putBoolean("is_masthead_show", true);
myReadsFragment.setArguments(bundle);
supportFragmentManager.beginTransaction().add(2131429286, myReadsFragment, "MY READS").addToBackStack("MY READS").commitAllowingStateLoss();
if (config == null || !config.isShowPremiumSection()) {
getActivity().j4("MY READS", false);
} else {
getActivity().f4(false, "MY READS");
}
}
public void lambda$setExpListViewAdapterAndData$7(View view) {
openQuickReadFragment("Explore List", 4);
}
public void lambda$setExpListViewAdapterAndData$8(View view) {
Bundle bundle = new Bundle();
bundle.putString(com.htmedia.mint.utils.n.X, "Explore");
bundle.putBoolean("is_masthead_show", true);
getActivity().startActivity(new Intent((Context) getActivity(), (Class<?>) NewsLetterActivityNew.class), ActivityOptions.makeCustomAnimation(getActivity(), 2130772024, 2130772030).toBundle());
}
public void lambda$setExpListViewAdapterAndData$9(Config config, View view) {
com.htmedia.mint.utils.n.M(getContext(), com.htmedia.mint.utils.n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Your daily digest");
String G1 = com.htmedia.mint.utils.f0.G1(getActivity(), "userName") != null ? com.htmedia.mint.utils.f0.G1(getActivity(), "userClient") : f6.d.b(getActivity());
Section section = new Section();
section.setDisplayName(getString(2131951858));
section.setId("DAILY_DIGEST");
section.setUrl(config.getDailyDigestURL() + "htfpId=" + G1 + "&propertyId=lm&platformId=app&numStories=50");
openSection(section);
}
private void openExternalBrower(Section section) {
String url = section.getUrl();
if (TextUtils.isEmpty(url)) {
return;
}
if (!url.startsWith("http")) {
url = AppController.j().g().getServerUrl() + url;
}
startActivity(new Intent("android.intent.action.VIEW", Uri.parse(url.trim())));
}
public void openLoginActivity() {
com.htmedia.mint.utils.n.M(getContext(), com.htmedia.mint.utils.n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Login");
WebEngageNewSSOEvents.trackSSOLinkClicked("Login", "Explore");
if (!com.htmedia.mint.utils.m0.a(getActivity())) {
Toast.makeText((Context) getActivity(), (CharSequence) "Can't login, Network not available", 1).show();
return;
}
n.a aVar = n.a.EXPLORE;
com.htmedia.mint.utils.n.g0(null, null, aVar.a(), aVar.a());
Intent intent = new Intent((Context) getActivity(), (Class<?>) LoginRegisterActivity.class);
intent.putExtra("origin", "Explore");
intent.putExtra("referer", "Explore");
intent.putExtra("ssoReason", "explore");
intent.setFlags(603979776);
startActivityForResult(intent, 102);
}
private void openMintAboutSectionPages(Section section) {
Intent intent = new Intent((Context) getActivity(), (Class<?>) WebViewActivityWithHeader.class);
intent.addFlags(67108864);
if (AppController.j().E()) {
intent.putExtra("url", section.getNightmodeurl());
} else {
intent.putExtra("url", section.getUrl());
}
intent.putExtra("Title", section.getDisplayName());
startActivity(intent);
if (section.getDisplayName().equalsIgnoreCase("Newspaper Subscription")) {
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/" + "Newspaper Subscription".replace(' ', '-'));
}
}
private void openMutualFund() {
FragmentManager supportFragmentManager = getActivity().getSupportFragmentManager();
MutualFundListingFragment mutualFundListingFragment = new MutualFundListingFragment();
mutualFundListingFragment.setArguments(new Bundle());
supportFragmentManager.beginTransaction().add(2131429286, mutualFundListingFragment, "quickreads").addToBackStack("quickreads").commit();
getActivity().f4(false, "MUTUAL FUND");
}
public void openPageWRTTamplate(Section section, int i) {
if (section != null) {
String template = section.getTemplate();
if (template != null) {
String trim = template.trim();
String[] strArr = com.htmedia.mint.utils.q.c;
if (trim.equalsIgnoreCase(strArr[5])) {
openExternalBrower(section);
} else if (template.trim().equalsIgnoreCase(strArr[6])) {
openMintAboutSectionPages(section);
} else if (section.getUrl().contains("/podcasts")) {
openPodCastNavtive();
} else if (section.getUrl().contains(com.htmedia.mint.utils.s0.MINT_LOUNGE.b())) {
openMintLoungeNative(section);
} else if (section.getUrl().contains("/quickread")) {
openQuickReadFragment("Topic clouds", i);
} else if (section.getUrl().contains("/video") || section.getUrl().contains("/videos")) {
openVideoListing(section);
} else {
openSection(section);
}
} else if (section.getUrl().contains("/podcasts")) {
openPodCastNavtive();
} else if (section.getUrl().contains(com.htmedia.mint.utils.s0.MINT_LOUNGE_BUSINESS.b())) {
openMintLoungeNative(section);
} else if (section.getUrl().contains(com.htmedia.mint.utils.s0.MINT_LOUNGE_FEATURE.b())) {
openMintLoungeNative(section);
} else if (section.getUrl().contains(com.htmedia.mint.utils.s0.MINT_LOUNGE_INDULGE.b())) {
openMintLoungeNative(section);
} else if (section.getUrl().contains(com.htmedia.mint.utils.s0.MINT_LOUNGE_ON_SUNDAY.b())) {
openMintLoungeNative(section);
} else if (section.getUrl().contains("/quickread")) {
openQuickReadFragment("Topic clouds", i);
} else if (section.getUrl().contains("/video") || section.getUrl().contains("/videos")) {
openVideoListing(section);
} else {
openSection(section);
}
if (section.getDisplayName().equalsIgnoreCase("Privacy Policy")) {
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/" + "Privacy Policy".replace(' ', '-'));
return;
}
String displayName = section.getDisplayName();
String[] strArr2 = com.htmedia.mint.utils.q.f;
if (displayName.equalsIgnoreCase(strArr2[0])) {
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/" + strArr2[0].replace(' ', '-'));
return;
}
if (section.getDisplayName().equalsIgnoreCase(strArr2[2])) {
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/" + strArr2[2].replace(' ', '-'));
return;
}
if (section.getDisplayName().equalsIgnoreCase(strArr2[1])) {
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/" + strArr2[1].replace(' ', '-'));
return;
}
if (section.getDisplayName().equalsIgnoreCase("Contact Us")) {
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/" + "Contact Us".replace(' ', '-'));
return;
}
if (section.getDisplayName().equalsIgnoreCase("Mint Offers")) {
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/" + "Mint Offers".replace(' ', '-'));
}
}
}
private void openPodCast(Section section) {
com.htmedia.mint.utils.j1.x0(2, getActivity());
openWebPage(section);
new Timer().schedule(new TimerTask() {
@Override
public void run() {
com.htmedia.mint.utils.j1.x0(1, LeftMenuFragment.this.getActivity());
}
}, 300L);
}
private void openPodCastNavtive() {
FragmentManager supportFragmentManager = getActivity().getSupportFragmentManager();
PodcastFragment podcastFragment = new PodcastFragment();
Bundle bundle = new Bundle();
bundle.putBoolean("is_masthead_show", true);
bundle.putString("origin", "explore");
podcastFragment.setArguments(bundle);
supportFragmentManager.beginTransaction().add(2131429286, podcastFragment, "Podcast").addToBackStack("Podcast").commit();
getActivity().f4(false, "PODCAST");
}
private void openQuickReadFragment(String str, int i) {
FragmentManager supportFragmentManager = getActivity().getSupportFragmentManager();
this.lotameClass.c(null, BuildConfig.FLAVOR, BuildConfig.FLAVOR, "Quick Read");
QuickReadFragment quickReadFragment = new QuickReadFragment();
Bundle bundle = new Bundle();
bundle.putString("explore", str);
bundle.putBoolean("is_masthead_show", true);
bundle.putInt("pos", i);
quickReadFragment.setArguments(bundle);
supportFragmentManager.beginTransaction().add(2131429286, quickReadFragment, "quickreads").addToBackStack("quickreads").commit();
getActivity().f4(false, "QUICK READS");
}
private void openSettingSection() {
com.htmedia.mint.utils.k1.x(com.htmedia.mint.utils.k1.l(getContext()), "/" + "Settings".replace(' ', '-'));
com.htmedia.mint.utils.n.M(getContext(), com.htmedia.mint.utils.n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Settings");
getActivity().startActivity(new Intent((Context) getActivity(), (Class<?>) SettingsActivity.class), ActivityOptions.makeCustomAnimation(getActivity(), 2130772024, 2130772030).toBundle());
}
private void openWebPage(Section section) {
String str;
if (section.getUrl().contains("http")) {
com.htmedia.mint.utils.o1.a("WebPage Url", BuildConfig.FLAVOR);
str = section.getUrl();
} else {
str = this.serverUrl + section.getUrl();
com.htmedia.mint.utils.o1.a("WebPage Url", str);
}
startActivity(new Intent("android.intent.action.VIEW", Uri.parse(str)));
}
public String getFirstName(String str) {
if (str == null || str.equalsIgnoreCase("null")) {
return "User";
}
if (!str.contains(" ")) {
return str;
}
StringBuilder sb2 = new StringBuilder(str.substring(0, str.indexOf(" ")));
sb2.setCharAt(0, Character.toUpperCase(sb2.charAt(0)));
return sb2.toString();
}
@Override
public void getNotificationResponse(NotificationPojo notificationPojo) {
TextView textView;
for (int i = 0; i < notificationPojo.getResult().size(); i++) {
if (notificationPojo.getResult().get(i).getDateType().equals("new")) {
this.badgeCount++;
}
}
this.results = (ArrayList) notificationPojo.getResult();
if (this.badgeCount == 0 || (textView = this.notificationBadge) == null) {
return;
}
textView.setVisibility(0);
}
public ArrayList<Result> getResults() {
return this.results;
}
@Override
public void getSection(SectionData sectionData) {
this.sectionArrayList.addAll(sectionData.getResult());
setExpListViewAdapterAndData(sectionData);
}
@Override
public void getSectionAAndC(LeftDrawerResponseParent leftDrawerResponseParent) {
}
public void onActivityCreated(@Nullable Bundle bundle) {
String str;
Section section;
super.onActivityCreated(bundle);
if (AppController.j().r() != null) {
List<Section> result = AppController.j().r().getResult();
this.sectionArrayList = result;
if (result != null) {
if (result.size() > 0) {
section = this.sectionArrayList.get(r14.size() - 1);
} else {
section = null;
}
if (section != null) {
section.getDisplayName();
Config g = AppController.j().g();
Podcast podcast = g != null ? g.getPodcast() : null;
if (podcast != null) {
boolean isPodcastExploreUrlEnabled = podcast.isPodcastExploreUrlEnabled();
this.isPodcast = isPodcastExploreUrlEnabled;
if (isPodcastExploreUrlEnabled) {
this.podcastUrl = podcast.getPodcastExploreUrl();
this.podcastName = podcast.getSectionName();
}
}
}
}
setExpListViewAdapterAndData(AppController.j().r());
} else if (AppController.j().g() != null) {
if (AppController.j().g().getLeftNav().getUrl().contains("http")) {
str = AppController.j().g().getLeftNav().getUrl();
} else {
str = this.serverUrl + AppController.j().g().getLeftNav().getUrl();
}
this.sectionPresenter.a(0, "LeftMenuFragment", str, this.headers, false, true);
}
String url = this.config.getMoengageNotification().getUrl();
if (url != null) {
com.htmedia.mint.utils.o1.a("Notification center Url", url);
new k6.k1(getActivity(), this).a(0, "Notification", this.config.getMoengageNotification(), false, true);
}
com.htmedia.mint.utils.n.A(getActivity(), com.htmedia.mint.utils.n.U0, "Explore", "topic_page", null, null);
AppController.L = "Explore";
}
public void onActivityResult(int i, int i2, Intent intent) {
super.onActivityResult(i, i2, intent);
if (i2 == -1 && i == 102) {
refreshHeaderView(this.header);
}
}
@Override
public void onAppleLogin(SocialResponsePojo socialResponsePojo) {
}
public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {
menuInflater.inflate(2131689478, menu);
MenuItem findItem = menu.findItem(2131427428);
this.menuItem = findItem;
View actionView = MenuItemCompat.getActionView(findItem);
this.notificationBadge = (TextView) actionView.findViewById(2131429972);
this.imgNotification = (ImageView) actionView.findViewById(2131428846);
if (AppController.j().E()) {
this.imgNotification.setImageDrawable(getResources().getDrawable(2131232703));
} else {
this.imgNotification.setImageDrawable(getResources().getDrawable(2131232698));
}
if (this.badgeCount != 0) {
this.notificationBadge.setVisibility(0);
} else {
this.notificationBadge.setVisibility(8);
}
actionView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
LeftMenuFragment leftMenuFragment = LeftMenuFragment.this;
leftMenuFragment.onOptionsItemSelected(leftMenuFragment.menuItem);
}
});
super.onCreateOptionsMenu(menu, menuInflater);
}
@Nullable
public View onCreateView(@NonNull LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, @Nullable Bundle bundle) {
this.binding = y50.c(layoutInflater, viewGroup, false);
HashMap<String, String> hashMap = new HashMap<>();
this.headers = hashMap;
hashMap.put("Authorization", com.htmedia.mint.utils.q.a);
LinearLayout linearLayout = (LinearLayout) getActivity().findViewById(2131429271);
this.layoutClose = linearLayout;
linearLayout.setVisibility(4);
this.sectionPresenter = new k6.u1(getActivity(), this);
this.lotameClass = new com.htmedia.mint.utils.q1(getActivity());
if (AppController.j().g() != null) {
this.serverUrl = AppController.j().g().getServerUrl();
}
this.config = AppController.j().g();
return this.binding.getRoot();
}
public void onDestroy() {
super.onDestroy();
getActivity().i0.a.b.setVisibility(0);
}
@Override
public void onError(e7.b bVar) {
}
@Override
public void onError(String str) {
}
@Override
public void onError(String str, String str2, String str3) {
}
@Override
public void onExecute(e7.h hVar, Object obj) {
}
@Override
public void onExpandViewClick(int i) {
if (this.binding.a.isGroupExpanded(i)) {
this.binding.a.collapseGroup(i);
} else {
this.binding.a.expandGroup(i);
}
}
@Override
public void onGroupNameClick(int i) {
Section section = this.sectionArrayList.get(i);
com.htmedia.mint.utils.n.M(getContext(), com.htmedia.mint.utils.n.U1, "topic_page", null, section.getUrl(), section.getDisplayName());
openPageWRTTamplate(section, i);
}
public boolean onOptionsItemSelected(MenuItem menuItem) {
if (menuItem.getItemId() != 2131427428) {
return false;
}
this.notificationBadge.setVisibility(8);
LinearLayout linearLayout = this.layoutClose;
if (linearLayout != null) {
linearLayout.setVisibility(4);
}
NotificationCenterFragment notificationCenterFragment = new NotificationCenterFragment();
if (this.badgeCount > 0) {
Date time = Calendar.getInstance().getTime();
com.htmedia.mint.utils.f0.i3(getActivity(), "notofication_click", new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss+SSSS").format(time));
this.badgeCount = 0;
Bundle bundle = new Bundle();
bundle.putParcelableArrayList("list", this.results);
notificationCenterFragment.setArguments(bundle);
}
getActivity().getSupportFragmentManager().beginTransaction().add(2131429286, notificationCenterFragment, "NotificationCenter").addToBackStack("NotificationCenter").commitAllowingStateLoss();
return true;
}
public void onPause() {
super.onPause();
Analytics.notifyExitForeground();
}
public void onPrepareOptionsMenu(Menu menu) {
MenuItem findItem = menu.findItem(2131427428);
this.menuItem = findItem;
View actionView = MenuItemCompat.getActionView(findItem);
this.notificationBadge = (TextView) actionView.findViewById(2131429972);
this.imgNotification = (ImageView) actionView.findViewById(2131428846);
if (AppController.j().E()) {
this.imgNotification.setImageDrawable(getResources().getDrawable(2131232703));
} else {
this.imgNotification.setImageDrawable(getResources().getDrawable(2131232698));
}
if (this.badgeCount != 0) {
this.notificationBadge.setVisibility(0);
} else {
this.notificationBadge.setVisibility(8);
}
actionView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
LeftMenuFragment leftMenuFragment = LeftMenuFragment.this;
leftMenuFragment.onOptionsItemSelected(leftMenuFragment.menuItem);
}
});
super.onPrepareOptionsMenu(menu);
}
public void onResume() {
super.onResume();
Analytics.notifyEnterForeground();
if (getActivity() != null) {
getActivity().B1();
getActivity().z1(true);
if (getActivity().i0.a.q != null) {
getActivity().i0.a.q.setExpanded(true, true);
}
getActivity().F3(false);
if (getTag() != null && getTag().equalsIgnoreCase("EXPLORE")) {
getActivity().z1(false);
getActivity().j4("EXPLORE", true);
getActivity().i0.a.b.setVisibility(8);
}
}
LinearLayout linearLayout = this.header;
if (linearLayout != null) {
refreshHeaderView(linearLayout);
}
ViewGroup viewGroup = this.footer;
if (viewGroup != null) {
refreshFooterView(viewGroup);
}
y6 y6Var = this.listAdapter;
if (y6Var != null) {
y6Var.notifyDataSetChanged();
}
if (AppController.j().C()) {
com.htmedia.mint.utils.f0.C();
}
com.htmedia.mint.utils.n.q0(getActivity(), "Explore");
}
public void openMintLoungeNative(Section section) {
Config g = AppController.j().g();
if (g == null || g.getMintLounge() == null) {
return;
}
FragmentManager supportFragmentManager = getActivity().getSupportFragmentManager();
String listUrl = g.getMintLounge().getListUrl();
HomeFragment homeFragment = new HomeFragment();
Bundle bundle = new Bundle();
section.setUrl(listUrl);
section.setType("mintLounge");
bundle.putParcelable("top_section_section", section);
bundle.putBoolean("is_masthead_show", true);
homeFragment.setArguments(bundle);
getActivity().f4(false, section.getDisplayName().toUpperCase());
supportFragmentManager.beginTransaction().add(2131429286, homeFragment, "mintLounge").addToBackStack("mintLounge").commit();
}
public void openSection(Section section) {
FragmentManager supportFragmentManager = getActivity().getSupportFragmentManager();
Fragment homeFragment = new HomeFragment();
Bundle bundle = new Bundle();
if (section.getDisplayName() == null || !section.getDisplayName().equalsIgnoreCase("NEWS")) {
bundle.putParcelable("top_section_section", section);
} else {
homeFragment = new NewsLatestAndTrendingFragment();
}
bundle.putBoolean("is_from_left_nav", true);
bundle.putBoolean("is_masthead_show", true);
try {
bundle.putString(com.htmedia.mint.utils.n.X, "Explore");
} catch (Exception e) {
e.printStackTrace();
}
homeFragment.setArguments(bundle);
supportFragmentManager.beginTransaction().add(2131429286, homeFragment, "Tag_Section").addToBackStack("Tag_Section").commit();
getActivity().f4(false, section.getDisplayName().toUpperCase());
}
public void openVideoListing(Section section) {
if (getActivity() != null) {
FragmentManager supportFragmentManager = getActivity().getSupportFragmentManager();
VideoListFragment newInstance = VideoListFragment.newInstance(false);
Bundle bundle = new Bundle();
bundle.putParcelable("top_section_section", section);
newInstance.setArguments(bundle);
supportFragmentManager.beginTransaction().add(2131429286, newInstance, "VIDEOS").addToBackStack("VIDEOS").commitAllowingStateLoss();
AppController.L = AppController.K;
AppController.K = section.getDisplayName();
if (getActivity().i0.a.b.getMenu().findItem(1000) != null) {
getActivity().i0.a.b.setVisibility(0);
com.htmedia.mint.utils.n.M(getActivity(), com.htmedia.mint.utils.n.p1, AppController.L, null, BuildConfig.FLAVOR, section.getDisplayName());
}
}
}
public void refreshFooterView(android.view.ViewGroup r18) {
throw new UnsupportedOperationException("Method not decompiled: com.htmedia.mint.ui.fragments.LeftMenuFragment.refreshFooterView(android.view.ViewGroup):void");
}
void refreshHeaderView(LinearLayout linearLayout) {
RelativeLayout relativeLayout;
ImageView imageView;
if (linearLayout != null) {
TextView textView = (TextView) linearLayout.findViewById(2131431742);
TextView textView2 = (TextView) linearLayout.findViewById(2131431708);
TextView textView3 = (TextView) linearLayout.findViewById(2131431730);
LinearLayout linearLayout2 = (LinearLayout) linearLayout.findViewById(2131429310);
LinearLayout linearLayout3 = (LinearLayout) linearLayout.findViewById(2131429303);
LinearLayout linearLayout4 = (LinearLayout) linearLayout.findViewById(2131429341);
LinearLayout linearLayout5 = (LinearLayout) linearLayout.findViewById(2131429377);
View findViewById = linearLayout.findViewById(2131430561);
LinearLayout linearLayout6 = (LinearLayout) linearLayout.findViewById(2131429609);
ImageView imageView2 = (ImageView) linearLayout.findViewById(2131428831);
TextView textView4 = (TextView) linearLayout.findViewById(2131430726);
TextView textView5 = (TextView) linearLayout.findViewById(2131431652);
TextView textView6 = (TextView) linearLayout.findViewById(2131431694);
TextView textView7 = (TextView) linearLayout.findViewById(2131431577);
TextView textView8 = (TextView) linearLayout.findViewById(2131431627);
TextView textView9 = (TextView) linearLayout.findViewById(2131431661);
TextView textView10 = (TextView) linearLayout.findViewById(2131431685);
TextView textView11 = (TextView) linearLayout.findViewById(2131429753);
TextView textView12 = (TextView) linearLayout.findViewById(2131431414);
TextView textView13 = (TextView) linearLayout.findViewById(2131429755);
View findViewById2 = linearLayout.findViewById(2131430552);
View findViewById3 = linearLayout.findViewById(2131430553);
View findViewById4 = linearLayout.findViewById(2131430554);
View findViewById5 = linearLayout.findViewById(2131430555);
View findViewById6 = linearLayout.findViewById(2131430556);
View findViewById7 = linearLayout.findViewById(2131430557);
View findViewById8 = linearLayout.findViewById(2131430560);
View findViewById9 = linearLayout.findViewById(2131430558);
View findViewById10 = linearLayout.findViewById(2131430559);
View findViewById11 = linearLayout.findViewById(2131432031);
View findViewById12 = linearLayout.findViewById(2131432073);
View findViewById13 = linearLayout.findViewById(2131432018);
TextView textView14 = (TextView) linearLayout.findViewById(2131432105);
View findViewById14 = linearLayout.findViewById(2131432104);
ImageView imageView3 = (ImageView) linearLayout.findViewById(2131432122);
Config g = AppController.j().g();
if (g.isQuickReadEnable()) {
linearLayout6.setVisibility(0);
} else {
linearLayout6.setVisibility(8);
}
Section wsjSection = g.getWsjSection();
if (wsjSection == null || TextUtils.isEmpty(wsjSection.getUrl())) {
linearLayout5.setVisibility(8);
findViewById.setVisibility(8);
} else {
linearLayout5.setVisibility(0);
findViewById.setVisibility(0);
}
checkSubscriptionStatus(textView4, findViewById3);
RelativeLayout relativeLayout2 = (RelativeLayout) linearLayout.findViewById(2131429282);
TextView textView15 = (TextView) linearLayout.findViewById(2131431603);
if (AppController.j().E()) {
textView.setTextColor(getResources().getColor(2131100599));
textView2.setTextColor(getResources().getColor(2131100599));
textView2.setCompoundDrawablesWithIntrinsicBounds(2131234121, 0, 0, 0);
textView3.setTextColor(getResources().getColor(2131100924));
textView4.setTextColor(getResources().getColor(2131100924));
textView14.setTextColor(getResources().getColor(2131100924));
textView5.setTextColor(getResources().getColor(2131100924));
textView6.setTextColor(getResources().getColor(2131100924));
textView7.setTextColor(getResources().getColor(2131100924));
textView8.setTextColor(getResources().getColor(2131100924));
textView9.setTextColor(getResources().getColor(2131100924));
textView10.setTextColor(getResources().getColor(2131100924));
textView11.setTextColor(getResources().getColor(2131100924));
textView12.setTextColor(getResources().getColor(2131100924));
textView13.setTextColor(getResources().getColor(2131100924));
linearLayout4.setBackgroundColor(getResources().getColor(2131100787));
imageView2.setBackgroundResource(2131233896);
linearLayout3.setBackgroundColor(getResources().getColor(2131101012));
findViewById2.setBackgroundColor(getResources().getColor(2131100599));
findViewById3.setBackgroundColor(getResources().getColor(2131100352));
findViewById14.setBackgroundColor(getResources().getColor(2131100352));
findViewById.setBackgroundColor(getResources().getColor(2131100352));
findViewById4.setBackgroundColor(getResources().getColor(2131100352));
findViewById5.setBackgroundColor(getResources().getColor(2131100352));
findViewById6.setBackgroundColor(getResources().getColor(2131100352));
findViewById7.setBackgroundColor(getResources().getColor(2131100352));
findViewById9.setBackgroundColor(getResources().getColor(2131100352));
findViewById10.setBackgroundColor(getResources().getColor(2131100352));
findViewById11.setBackgroundColor(getResources().getColor(2131100352));
findViewById12.setBackgroundColor(getResources().getColor(2131100352));
findViewById13.setBackgroundColor(getResources().getColor(2131100352));
findViewById8.setBackgroundColor(getResources().getColor(2131100352));
imageView3.setImageResource(2131234374);
textView15.setTextColor(getResources().getColor(2131100599));
imageView = imageView2;
relativeLayout = relativeLayout2;
} else {
relativeLayout = relativeLayout2;
textView.setTextColor(getResources().getColor(2131100598));
textView2.setTextColor(getResources().getColor(2131100598));
textView2.setCompoundDrawablesWithIntrinsicBounds(2131234112, 0, 0, 0);
textView3.setTextColor(getResources().getColor(2131100923));
textView4.setTextColor(getResources().getColor(2131100923));
textView14.setTextColor(getResources().getColor(2131100923));
textView5.setTextColor(getResources().getColor(2131100923));
textView6.setTextColor(getResources().getColor(2131100923));
textView7.setTextColor(getResources().getColor(2131100923));
textView8.setTextColor(getResources().getColor(2131100923));
textView9.setTextColor(getResources().getColor(2131100923));
textView10.setTextColor(getResources().getColor(2131100923));
textView11.setTextColor(getResources().getColor(2131100923));
textView12.setTextColor(getResources().getColor(2131100923));
textView13.setTextColor(getResources().getColor(2131100923));
linearLayout4.setBackgroundColor(getResources().getColor(2131100786));
imageView = imageView2;
imageView.setBackgroundResource(2131233895);
linearLayout3.setBackgroundColor(getResources().getColor(2131101002));
findViewById2.setBackgroundColor(getResources().getColor(2131100598));
findViewById3.setBackgroundColor(getResources().getColor(2131100351));
findViewById14.setBackgroundColor(getResources().getColor(2131100351));
findViewById.setBackgroundColor(getResources().getColor(2131100351));
findViewById4.setBackgroundColor(getResources().getColor(2131100351));
findViewById5.setBackgroundColor(getResources().getColor(2131100351));
findViewById6.setBackgroundColor(getResources().getColor(2131100351));
findViewById7.setBackgroundColor(getResources().getColor(2131100351));
findViewById9.setBackgroundColor(getResources().getColor(2131100351));
findViewById10.setBackgroundColor(getResources().getColor(2131100351));
findViewById11.setBackgroundColor(getResources().getColor(2131100351));
findViewById12.setBackgroundColor(getResources().getColor(2131100351));
findViewById13.setBackgroundColor(getResources().getColor(2131100351));
findViewById8.setBackgroundColor(getResources().getColor(2131100351));
imageView3.setImageResource(2131234376);
textView15.setTextColor(getResources().getColor(2131100598));
}
relativeLayout.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$refreshHeaderView$15(view);
}
});
if (com.htmedia.mint.utils.f0.G1(getActivity(), "userName") != null) {
getFirstName(com.htmedia.mint.utils.f0.G1(getActivity(), "userName"));
textView.setText(getString(2131951661));
if (AppController.j().E()) {
textView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 2131232453, 0);
} else {
textView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 2131232452, 0);
}
linearLayout2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (TextUtils.isEmpty(com.htmedia.mint.utils.f0.G1(LeftMenuFragment.this.getActivity(), "userToken"))) {
com.htmedia.mint.utils.n.M(LeftMenuFragment.this.getContext(), com.htmedia.mint.utils.n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "Login");
LeftMenuFragment.this.openLoginActivity();
} else {
com.htmedia.mint.utils.n.M(LeftMenuFragment.this.getContext(), com.htmedia.mint.utils.n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "My Account");
WebEngageAnalytices.trackClickEvents((String) null, (String) null, "My Account Viewed", (Content) null, "Explore", BuildConfig.FLAVOR, BuildConfig.FLAVOR);
LeftMenuFragment.this.startActivity(SubscriptionTrigger.openProfileActivity(LeftMenuFragment.this.getActivity()));
}
}
});
return;
}
textView.setText(getString(2131951666));
if (AppController.j().E()) {
textView.setCompoundDrawablesWithIntrinsicBounds(2131233903, 0, 0, 0);
} else {
textView.setCompoundDrawablesWithIntrinsicBounds(2131233902, 0, 0, 0);
}
linearLayout2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
LeftMenuFragment.this.openLoginActivity();
}
});
imageView.setVisibility(8);
}
}
void setExpListViewAdapterAndData(final SectionData sectionData) {
ImageView imageView;
boolean z;
try {
this.listAdapter = new y6(getActivity(), sectionData, this);
this.binding.a.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {
@Override
public boolean onGroupClick(ExpandableListView expandableListView, View view, int i, long j) {
return true;
}
});
this.binding.a.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {
@Override
public boolean onChildClick(ExpandableListView expandableListView, View view, int i, int i2, long j) {
SectionData sectionData2 = sectionData;
Section section = null;
Section section2 = (sectionData2 == null || sectionData2.getResult() == null || sectionData.getResult().isEmpty() || sectionData.getResult().size() <= i) ? null : sectionData.getResult().get(i);
if (section2 != null && section2.getSubSections() != null && !section2.getSubSections().isEmpty() && section2.getSubSections().size() > i2) {
section = section2.getSubSections().get(i2);
}
if (section != null) {
section.setParentSectionName((section2 == null || TextUtils.isEmpty(section2.getDisplayName())) ? BuildConfig.FLAVOR : section2.getDisplayName());
}
com.htmedia.mint.utils.n.M(LeftMenuFragment.this.getContext(), com.htmedia.mint.utils.n.U1, BuildConfig.FLAVOR, null, sectionData.getResult().get(i).getSubSections().get(i2).getUrl(), sectionData.getResult().get(i).getDisplayName(), sectionData.getResult().get(i).getSubSections().get(i2).getDisplayName());
com.htmedia.mint.utils.o1.a("TAG", sectionData.getResult().get(i).getDisplayName() + " " + sectionData.getResult().get(i).getSubSections().get(i2).getDisplayName());
LeftMenuFragment.this.openPageWRTTamplate(section, i);
return false;
}
});
LinearLayout linearLayout = (LinearLayout) getLayoutInflater().inflate(2131624742, (ViewGroup) this.binding.a, false);
this.header = linearLayout;
this.binding.a.addHeaderView(linearLayout, null, false);
LinearLayout linearLayout2 = (LinearLayout) this.header.findViewById(2131429340);
LinearLayout linearLayout3 = (LinearLayout) this.header.findViewById(2131429626);
LinearLayout linearLayout4 = (LinearLayout) this.header.findViewById(2131429631);
refreshHeaderView(this.header);
TextView textView = (TextView) this.header.findViewById(2131429753);
TextView textView2 = (TextView) this.header.findViewById(2131431414);
View findViewById = this.header.findViewById(2131432073);
TextView textView3 = (TextView) this.header.findViewById(2131431685);
View findViewById2 = this.header.findViewById(2131432031);
TextView textView4 = (TextView) this.header.findViewById(2131429755);
View findViewById3 = this.header.findViewById(2131432018);
TextView textView5 = (TextView) this.header.findViewById(2131430726);
LinearLayout linearLayout5 = (LinearLayout) this.header.findViewById(2131429377);
LinearLayout linearLayout6 = (LinearLayout) this.header.findViewById(2131429609);
final TextView textView6 = (TextView) this.header.findViewById(2131431652);
TextView textView7 = (TextView) this.header.findViewById(2131431694);
TextView textView8 = (TextView) this.header.findViewById(2131431661);
View findViewById4 = this.header.findViewById(2131430554);
View findViewById5 = this.header.findViewById(2131430561);
ImageView imageView2 = (ImageView) this.header.findViewById(2131432122);
TextView textView9 = (TextView) this.header.findViewById(2131432105);
View findViewById6 = this.header.findViewById(2131432104);
final Config g = AppController.j().g();
if (g == null || g.getWhySubscribe() == null || !g.getWhySubscribe().isAndroidEnabled()) {
imageView = imageView2;
z = false;
} else {
z = true;
imageView = imageView2;
}
if (z) {
textView9.setVisibility(0);
findViewById6.setVisibility(0);
textView9.setText((g == null || g.getWhySubscribe() == null || TextUtils.isEmpty(g.getWhySubscribe().getAndroidTitle())) ? getString(2131951668) : g.getWhySubscribe().getAndroidTitle());
} else {
textView9.setVisibility(8);
findViewById6.setVisibility(8);
}
textView3.setText(this.podcastName);
if (g.isQuickReadEnable()) {
linearLayout6.setVisibility(0);
} else {
linearLayout6.setVisibility(8);
}
if (g.isShowMarketDashboardInExplore()) {
textView.setVisibility(0);
findViewById.setVisibility(0);
} else {
textView.setVisibility(8);
findViewById.setVisibility(8);
}
if (this.isPodcast) {
textView3.setVisibility(0);
findViewById2.setVisibility(0);
} else {
textView3.setVisibility(8);
findViewById2.setVisibility(8);
}
if (g.isShowMintPremiumInExplore()) {
textView4.setVisibility(0);
findViewById3.setVisibility(0);
} else {
textView4.setVisibility(8);
findViewById3.setVisibility(8);
}
if (TextUtils.isEmpty(g.getDailyDigestURL()) || !g.isDailyDigestEnabled()) {
linearLayout3.setVisibility(8);
} else {
linearLayout3.setVisibility(0);
}
if (g.getFreemium() == null || TextUtils.isEmpty(g.getFreemium().getUrl())) {
linearLayout4.setVisibility(8);
} else {
linearLayout4.setVisibility(0);
}
final Section wsjSection = g.getWsjSection();
if (wsjSection == null || TextUtils.isEmpty(wsjSection.getUrl())) {
linearLayout5.setVisibility(8);
findViewById5.setVisibility(8);
} else {
linearLayout5.setVisibility(0);
findViewById5.setVisibility(0);
if (AppController.j().E()) {
imageView.setImageResource(2131234374);
} else {
imageView.setImageResource(2131234376);
}
}
textView9.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$0(view);
}
});
textView4.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$1(view);
}
});
textView.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$2(view);
}
});
textView2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$3(view);
}
});
textView3.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$4(view);
}
});
textView5.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$5(view);
}
});
linearLayout5.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
wsjSection.setWsj(true);
com.htmedia.mint.utils.n.M(LeftMenuFragment.this.getContext(), com.htmedia.mint.utils.n.U1, BuildConfig.FLAVOR, null, BuildConfig.FLAVOR, "The wall street journal");
LeftMenuFragment.this.openPageWRTTamplate(wsjSection, 0);
}
});
if (AppController.j().g() == null || !AppController.j().g().isShowPremiumSection()) {
findViewById4.setVisibility(8);
textView6.setVisibility(8);
} else {
findViewById4.setVisibility(0);
textView6.setVisibility(0);
textView6.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$6(textView6, g, view);
}
});
}
textView7.setVisibility(0);
textView7.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$7(view);
}
});
textView8.setVisibility(0);
textView8.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$8(view);
}
});
linearLayout3.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$9(g, view);
}
});
linearLayout4.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$10(g, view);
}
});
linearLayout2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
LeftMenuFragment.this.lambda$setExpListViewAdapterAndData$11(view);
}
});
ViewGroup viewGroup = (ViewGroup) getActivity().getLayoutInflater().inflate(2131624744, (ViewGroup) this.binding.a, false);
this.footer = viewGroup;
refreshFooterView(viewGroup);
this.binding.a.addFooterView(this.footer);
this.binding.a.setAdapter(this.listAdapter);
} catch (Exception e) {
e.printStackTrace();
com.htmedia.mint.utils.o0.g(e, getClass().getSimpleName());
}
}
}