正在查看: Mint v5.7.3 应用的 u1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 u1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package q7;
import android.net.Uri;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.viewpager2.adapter.FragmentStateAdapter;
import com.htmedia.mint.marketRevamp.ui.fragments.StockRecosFragment;
import com.htmedia.mint.pojo.config.Config;
import com.htmedia.mint.pojo.config.MarketMenuItem;
import com.htmedia.mint.pojo.config.Section;
import com.htmedia.mint.ui.fragments.CommoditiesListingFragment;
import com.htmedia.mint.ui.fragments.MarketOverviewNewFragment;
import com.htmedia.mint.ui.fragments.MarketStockFragment;
import com.htmedia.mint.ui.fragments.NewMutualFundListingFragment;
import com.htmedia.mint.utils.q;
import com.snowplowanalytics.snowplow.tracker.constants.Parameters;
import com.thoughtbot.expandablerecyclerview.BuildConfig;
import in.juspay.hypersdk.core.PaymentConstants;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010%\n\u0002\u0010\b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\u0018\u00002\u00020\u0001B+\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007\u0012\u0006\u0010\t\u001a\u00020\n¢\u0006\u0002\u0010\u000bJ\u0010\u0010\u0011\u001a\u00020\u00032\u0006\u0010\u0012\u001a\u00020\u0010H\u0016J\u000e\u0010\u0013\u001a\u00020\u00032\u0006\u0010\u0014\u001a\u00020\bJ\b\u0010\u0015\u001a\u00020\u0010H\u0016J\u0010\u0010\u0016\u001a\u0004\u0018\u00010\u00032\u0006\u0010\u0012\u001a\u00020\u0010J\u001e\u0010\u0017\u001a\u00020\u00032\u0006\u0010\u0018\u001a\u00020\u00192\u0006\u0010\u001a\u001a\u00020\u00102\u0006\u0010\u001b\u001a\u00020\u001cR\u000e\u0010\t\u001a\u00020\nX\u0082\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u000e\u001a\u000e\u0012\u0004\u0012\u00020\u0010\u0012\u0004\u0012\u00020\u00030\u000fX\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u001d"}, d2 = {"Lcom/htmedia/mint/ui/adapters/MarketDashboardNewPagerAdapter;", "Landroidx/viewpager2/adapter/FragmentStateAdapter;", Parameters.SCREEN_FRAGMENT, "Landroidx/fragment/app/Fragment;", PaymentConstants.Category.CONFIG, "Lcom/htmedia/mint/pojo/config/Config;", "sections", BuildConfig.FLAVOR, "Lcom/htmedia/mint/pojo/config/MarketMenuItem;", "arguments", "Landroid/os/Bundle;", "(Landroidx/fragment/app/Fragment;Lcom/htmedia/mint/pojo/config/Config;Ljava/util/List;Landroid/os/Bundle;)V", "getConfig", "()Lcom/htmedia/mint/pojo/config/Config;", "fragments", BuildConfig.FLAVOR, BuildConfig.FLAVOR, "createFragment", "position", "getFragmentById", "marketMenuItem", "getItemCount", "getRegisteredFragment", "openSection", "_section", "Lcom/htmedia/mint/pojo/config/Section;", "pos", "isForMarketInsight", BuildConfig.FLAVOR, "app_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class u1 extends FragmentStateAdapter {
private final Fragment a;
private final Config b;
private final List<MarketMenuItem> c;
private final Bundle d;
private final Map<Integer, Fragment> e;
public u1(Fragment fragment, Config config, List<? extends MarketMenuItem> list, Bundle bundle) {
super(fragment);
kotlin.jvm.internal.m.g(fragment, Parameters.SCREEN_FRAGMENT);
kotlin.jvm.internal.m.g(config, PaymentConstants.Category.CONFIG);
kotlin.jvm.internal.m.g(list, "sections");
kotlin.jvm.internal.m.g(bundle, "arguments");
this.a = fragment;
this.b = config;
this.c = list;
this.d = bundle;
this.e = new LinkedHashMap();
}
public Fragment createFragment(int position) {
Fragment g = g(this.c.get(position));
this.e.put(Integer.valueOf(position), g);
return g;
}
public final Fragment g(MarketMenuItem marketMenuItem) {
kotlin.jvm.internal.m.g(marketMenuItem, "marketMenuItem");
Fragment fragment = new Fragment();
String id2 = marketMenuItem.getId();
if (kotlin.jvm.internal.m.b(id2, q.p.MARKET_OVERVIEW.getId())) {
MarketOverviewNewFragment marketOverviewNewFragment = new MarketOverviewNewFragment();
marketOverviewNewFragment.setArguments(this.d);
return marketOverviewNewFragment;
}
if (kotlin.jvm.internal.m.b(id2, q.p.STOCK_RECOS.getId())) {
StockRecosFragment stockRecosFragment = new StockRecosFragment();
stockRecosFragment.setArguments(this.d);
return stockRecosFragment;
}
if (kotlin.jvm.internal.m.b(id2, q.p.STOCKS.getId())) {
MarketStockFragment marketStockFragment = new MarketStockFragment();
marketStockFragment.setArguments(this.d);
return marketStockFragment;
}
if (kotlin.jvm.internal.m.b(id2, q.p.MUTUALFUND_NEWS.getId())) {
Section section = new Section();
Uri parse = Uri.parse(marketMenuItem.getUrl());
kotlin.jvm.internal.m.f(parse, "parse(...)");
Set<String> queryParameterNames = parse.getQueryParameterNames();
String url = marketMenuItem.getUrl();
if (queryParameterNames != null && !queryParameterNames.isEmpty()) {
url = parse.getQueryParameter("url");
}
section.setUrl(url);
section.setId(marketMenuItem.getId());
section.setDisplayName(marketMenuItem.getName());
section.setTemplate("card");
section.setType("internal");
section.setAndroidVersion("198");
return h(section, 1, false);
}
if (kotlin.jvm.internal.m.b(id2, q.p.IPO_NEWS.getId())) {
Section section2 = new Section();
section2.setUrl("http://www.livemint.com");
section2.setId("marketinsights");
section2.setDisplayName("Market Insight");
section2.setTemplate("listing_page");
section2.setType("internal");
section2.setAndroidVersion("197");
return h(section2, 4, true);
}
if (kotlin.jvm.internal.m.b(id2, q.p.MUTUAL_FUND.getId())) {
NewMutualFundListingFragment newMutualFundListingFragment = new NewMutualFundListingFragment();
newMutualFundListingFragment.setArguments(this.d);
return newMutualFundListingFragment;
}
if (!kotlin.jvm.internal.m.b(id2, q.p.COMMODITIES.getId())) {
return fragment;
}
CommoditiesListingFragment commoditiesListingFragment = new CommoditiesListingFragment();
commoditiesListingFragment.setArguments(this.d);
return commoditiesListingFragment;
}
public int getItemCount() {
return this.c.size();
}
public final androidx.fragment.app.Fragment h(com.htmedia.mint.pojo.config.Section r8, int r9, boolean r10) {
throw new UnsupportedOperationException("Method not decompiled: q7.u1.h(com.htmedia.mint.pojo.config.Section, int, boolean):androidx.fragment.app.Fragment");
}
}