正在查看: Mint v5.7.3 应用的 PredictionLeaderBoardActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 PredictionLeaderBoardActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.htmedia.mint.ui.activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.text.Html;
import android.text.SpannableString;
import android.text.TextPaint;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.appcompat.widget.Toolbar;
import androidx.core.content.ContextCompat;
import androidx.core.content.res.ResourcesCompat;
import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.htmedia.mint.pojo.GoldSilverResponse;
import com.htmedia.mint.pojo.LeaderBoardPojo;
import com.htmedia.mint.pojo.TickerPojo;
import com.htmedia.mint.pojo.config.Config;
import com.htmedia.mint.pojo.config.PredictSensex;
import com.htmedia.mint.pojo.prediction.LastPredictionResponse;
import com.htmedia.mint.ui.fragments.HomeFragment;
import com.htmedia.mint.ui.fragments.PredictionBottomSheet;
import com.htmedia.mint.utils.q;
import com.thoughtbot.expandablerecyclerview.BuildConfig;
import in.juspay.hyper.constants.LogCategory;
import in.juspay.hypersdk.core.PaymentConstants;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import q7.p5;
import y7.o5;
@Metadata(d1 = {"\u0000~\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\f\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u0003B\u0005¢\u0006\u0002\u0010\u0004J&\u0010\u001f\u001a\u00020 2\u0006\u0010!\u001a\u00020\"2\u0006\u0010#\u001a\u00020$2\u0006\u0010%\u001a\u00020&2\u0006\u0010'\u001a\u00020(J\u0010\u0010)\u001a\u00020 2\u0006\u0010*\u001a\u00020+H\u0016J\b\u0010,\u001a\u00020 H\u0002J\u0006\u0010-\u001a\u00020 J\"\u0010.\u001a\u00020 2\u000e\u0010/\u001a\n\u0012\u0004\u0012\u000201\u0018\u0001002\b\u00102\u001a\u0004\u0018\u00010$H\u0016J\u001c\u00103\u001a\u00020 2\b\u00104\u001a\u0004\u0018\u0001052\b\u00102\u001a\u0004\u0018\u00010$H\u0016J\u001c\u00106\u001a\u00020 2\b\u00107\u001a\u0004\u0018\u0001052\b\u00102\u001a\u0004\u0018\u00010$H\u0016J\u0012\u00108\u001a\u00020 2\b\u00109\u001a\u0004\u0018\u00010:H\u0014J\u001c\u0010;\u001a\u00020 2\b\u0010<\u001a\u0004\u0018\u00010$2\b\u00102\u001a\u0004\u0018\u00010$H\u0016J\u0006\u0010=\u001a\u00020 J\u0006\u0010>\u001a\u00020 J\b\u0010?\u001a\u00020 H\u0014J\b\u0010@\u001a\u00020 H\u0002J\u0006\u0010A\u001a\u00020 J\b\u0010B\u001a\u00020 H\u0002J\u0006\u0010C\u001a\u00020 J\u0016\u0010D\u001a\u00020 2\u0006\u0010%\u001a\u00020&2\u0006\u0010!\u001a\u00020\"J\b\u0010E\u001a\u00020 H\u0002R\u001a\u0010\u0005\u001a\u00020\u0006X\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\u0007\u0010\b\"\u0004\b\t\u0010\nR\u001a\u0010\u000b\u001a\u00020\fX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\r\u0010\u000e\"\u0004\b\u000f\u0010\u0010R\u001a\u0010\u0011\u001a\u00020\u0012X\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\u0013\u0010\u0014\"\u0004\b\u0015\u0010\u0016R\u0010\u0010\u0017\u001a\u0004\u0018\u00010\u0018X\u0082\u000e¢\u0006\u0002\n\u0000R\u001a\u0010\u0019\u001a\u00020\u001aX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\u001b\u0010\u001c\"\u0004\b\u001d\u0010\u001e¨\u0006F"}, d2 = {"Lcom/htmedia/mint/ui/activity/PredictionLeaderBoardActivity;", "Lcom/htmedia/mint/ui/activity/BaseActivity;", "Lcom/htmedia/mint/ui/fragments/PredictionBottomSheet$CustomInterface;", "Lcom/htmedia/mint/presenter/MarketViewInterface;", "()V", "adapter", "Lcom/htmedia/mint/ui/adapters/PredictionLeaderBoardAdapter;", "getAdapter", "()Lcom/htmedia/mint/ui/adapters/PredictionLeaderBoardAdapter;", "setAdapter", "(Lcom/htmedia/mint/ui/adapters/PredictionLeaderBoardAdapter;)V", "binding", "Lcom/htmedia/mint/databinding/ActivityPredictionLeaderboardBinding;", "getBinding", "()Lcom/htmedia/mint/databinding/ActivityPredictionLeaderboardBinding;", "setBinding", "(Lcom/htmedia/mint/databinding/ActivityPredictionLeaderboardBinding;)V", PaymentConstants.Category.CONFIG, "Lcom/htmedia/mint/pojo/config/Config;", "getConfig", "()Lcom/htmedia/mint/pojo/config/Config;", "setConfig", "(Lcom/htmedia/mint/pojo/config/Config;)V", "helperClass", "Lcom/htmedia/mint/utils/MarketHelperClass;", "viewModel", "Lcom/htmedia/mint/ui/viewModels/PredictionViewModel;", "getViewModel", "()Lcom/htmedia/mint/ui/viewModels/PredictionViewModel;", "setViewModel", "(Lcom/htmedia/mint/ui/viewModels/PredictionViewModel;)V", "addText", BuildConfig.FLAVOR, "linearLayout", "Landroid/widget/LinearLayout;", "summaryTxt", BuildConfig.FLAVOR, LogCategory.CONTEXT, "Landroid/content/Context;", "b", BuildConfig.FLAVOR, "callbackMethod", "submitPredictionResponse", "Lcom/htmedia/mint/pojo/prediction/LastPredictionResponse;", "checkPredictSense", "darkmode", "getGoldSilverTicker", "goldSilverResponseList", BuildConfig.FLAVOR, "Lcom/htmedia/mint/pojo/GoldSilverResponse;", "url", "getLoserAndGainer", "foryouPojo", "Lcom/htmedia/mint/pojo/TickerPojo;", "getMarketTicker", "tickerPojo", "onCreate", "savedInstanceState", "Landroid/os/Bundle;", "onError", "error", "onPredictionButtonClick", "onPredictionEditButtonClick", "onResume", "openPredictionBottomSheet", "setData", "setObservable", "setRecyclerView", "setSummaryLayout", "setToolBar", "app_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class PredictionLeaderBoardActivity extends com.htmedia.mint.ui.activity.a implements PredictionBottomSheet.CustomInterface, k6.w0 {
public x4.k2 a;
public p5 b;
public o5 c;
public Config d;
private com.htmedia.mint.utils.r1 e;
@Metadata(d1 = {"\u0000\u001f\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0016J\u0010\u0010\u0006\u001a\u00020\u00032\u0006\u0010\u0007\u001a\u00020\bH\u0016¨\u0006\t"}, d2 = {"com/htmedia/mint/ui/activity/PredictionLeaderBoardActivity$addText$clickableSpan$1", "Landroid/text/style/ClickableSpan;", "onClick", BuildConfig.FLAVOR, "textView", "Landroid/view/View;", "updateDrawState", "ds", "Landroid/text/TextPaint;", "app_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
public static final class a extends ClickableSpan {
a() {
}
@Override
public void onClick(View textView) {
kotlin.jvm.internal.m.g(textView, "textView");
Intent intent = new Intent((Context) PredictionLeaderBoardActivity.this, (Class<?>) WebViewActivityWithHeader.class);
String link = PredictionLeaderBoardActivity.this.getConfig().getPredictSensex().getTermCondition().getLink();
kotlin.jvm.internal.m.d(link);
intent.putExtra("url", link);
intent.putExtra("Title", "Terms and Condition");
PredictionLeaderBoardActivity.this.startActivity(intent);
}
@Override
public void updateDrawState(TextPaint ds) {
kotlin.jvm.internal.m.g(ds, "ds");
super.updateDrawState(ds);
ds.setUnderlineText(false);
}
}
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
static final class b implements Observer, kotlin.jvm.internal.g {
private final fh.l a;
b(fh.l lVar) {
kotlin.jvm.internal.m.g(lVar, "function");
this.a = lVar;
}
public final boolean equals(Object obj) {
if ((obj instanceof Observer) && (obj instanceof kotlin.jvm.internal.g)) {
return kotlin.jvm.internal.m.b(getFunctionDelegate(), ((kotlin.jvm.internal.g) obj).getFunctionDelegate());
}
return false;
}
public final ug.c<?> getFunctionDelegate() {
return this.a;
}
public final int hashCode() {
return getFunctionDelegate().hashCode();
}
public final void onChanged(Object obj) {
this.a.invoke(obj);
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "it", "Lcom/htmedia/mint/pojo/LeaderBoardPojo;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 9, 0}, xi = 48)
static final class c extends kotlin.jvm.internal.n implements fh.l<LeaderBoardPojo, ug.a0> {
c() {
super(1);
}
public final void a(com.htmedia.mint.pojo.LeaderBoardPojo r5) {
throw new UnsupportedOperationException("Method not decompiled: com.htmedia.mint.ui.activity.PredictionLeaderBoardActivity.c.a(com.htmedia.mint.pojo.LeaderBoardPojo):void");
}
public Object invoke(Object obj) {
a((LeaderBoardPojo) obj);
return ug.a0.a;
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", BuildConfig.FLAVOR, "it", "Lcom/htmedia/mint/pojo/prediction/LastPredictionResponse;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 9, 0}, xi = 48)
static final class d extends kotlin.jvm.internal.n implements fh.l<LastPredictionResponse, ug.a0> {
d() {
super(1);
}
public Object invoke(Object obj) {
invoke((LastPredictionResponse) obj);
return ug.a0.a;
}
public final void invoke(LastPredictionResponse lastPredictionResponse) {
if (lastPredictionResponse != null) {
PredictionLeaderBoardActivity.this.R().z().set(lastPredictionResponse);
}
}
}
private final void N() {
this.e = new com.htmedia.mint.utils.r1();
if (HomeFragment.tableObservableField.get() == null) {
k6.v0 v0Var = new k6.v0(this, this);
com.htmedia.mint.utils.r1 r1Var = this.e;
v0Var.d(0, "MarketTICKER", r1Var != null ? r1Var.y(q.o.TICKER) : null, null, null, true, false);
}
}
public static final void S(PredictionLeaderBoardActivity predictionLeaderBoardActivity, View view) {
kotlin.jvm.internal.m.g(predictionLeaderBoardActivity, "this$0");
predictionLeaderBoardActivity.U();
}
public static final void T(PredictionLeaderBoardActivity predictionLeaderBoardActivity, View view) {
kotlin.jvm.internal.m.g(predictionLeaderBoardActivity, "this$0");
predictionLeaderBoardActivity.V();
}
private final void W() {
String str;
LastPredictionResponse lastPredictionResponse = (LastPredictionResponse) R().z().get();
String str2 = BuildConfig.FLAVOR;
if (lastPredictionResponse != null) {
str = !TextUtils.isEmpty(lastPredictionResponse.getName()) ? lastPredictionResponse.getName() : BuildConfig.FLAVOR;
if (!TextUtils.isEmpty(lastPredictionResponse.getValue())) {
str2 = lastPredictionResponse.getValue();
}
} else {
str = BuildConfig.FLAVOR;
}
PredictionBottomSheet newInstance = PredictionBottomSheet.INSTANCE.newInstance(str2, str);
newInstance.initViewModel(R());
newInstance.initCallBAck(this);
FragmentTransaction beginTransaction = getSupportFragmentManager().beginTransaction();
kotlin.jvm.internal.m.f(beginTransaction, "beginTransaction(...)");
beginTransaction.add(newInstance, PredictionBottomSheet.class.getSimpleName());
beginTransaction.commitAllowingStateLoss();
}
private final void a0() {
R().I().observe(this, new b(new d()));
}
private final void d0() {
Toolbar findViewById = findViewById(2131430942);
kotlin.jvm.internal.m.e(findViewById, "null cannot be cast to non-null type androidx.appcompat.widget.Toolbar");
Toolbar toolbar = findViewById;
toolbar.setContentInsetStartWithNavigation(0);
setSupportActionBar(toolbar);
ActionBar supportActionBar = getSupportActionBar();
kotlin.jvm.internal.m.d(supportActionBar);
supportActionBar.setDisplayShowTitleEnabled(false);
toolbar.setTitle("Back");
toolbar.setTitleTextColor(ResourcesCompat.getColor(getResources(), 2131100950, (Resources.Theme) null));
toolbar.setNavigationIcon(2131231330);
if (toolbar.getTitle() != null) {
String obj = toolbar.getTitle().toString();
int childCount = toolbar.getChildCount();
for (int i = 0; i < childCount; i++) {
AppCompatTextView childAt = toolbar.getChildAt(i);
if (kotlin.jvm.internal.m.b("androidx.appcompat.widget.AppCompatTextView", childAt.getClass().getName())) {
kotlin.jvm.internal.m.e(childAt, "null cannot be cast to non-null type androidx.appcompat.widget.AppCompatTextView");
AppCompatTextView appCompatTextView = childAt;
if (appCompatTextView.getText().equals(obj)) {
appCompatTextView.setTypeface(ResourcesCompat.getFont(this, 2131296270));
appCompatTextView.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
appCompatTextView.setCompoundDrawablePadding(0);
childAt.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
PredictionLeaderBoardActivity.e0(PredictionLeaderBoardActivity.this, view);
}
});
}
}
}
}
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
PredictionLeaderBoardActivity.f0(PredictionLeaderBoardActivity.this, view);
}
});
}
public static final void e0(PredictionLeaderBoardActivity predictionLeaderBoardActivity, View view) {
kotlin.jvm.internal.m.g(predictionLeaderBoardActivity, "this$0");
predictionLeaderBoardActivity.finish();
}
public static final void f0(PredictionLeaderBoardActivity predictionLeaderBoardActivity, View view) {
kotlin.jvm.internal.m.g(predictionLeaderBoardActivity, "this$0");
predictionLeaderBoardActivity.onBackPressed();
}
public final void M(LinearLayout linearLayout, String str, Context context, boolean z) {
kotlin.jvm.internal.m.g(linearLayout, "linearLayout");
kotlin.jvm.internal.m.g(str, "summaryTxt");
kotlin.jvm.internal.m.g(context, LogCategory.CONTEXT);
View inflate = getLayoutInflater().inflate(2131624774, (ViewGroup) null);
View findViewById = inflate.findViewById(2131430854);
kotlin.jvm.internal.m.e(findViewById, "null cannot be cast to non-null type android.widget.TextView");
TextView textView = (TextView) findViewById;
View findViewById2 = inflate.findViewById(2131428751);
kotlin.jvm.internal.m.e(findViewById2, "null cannot be cast to non-null type android.widget.ImageView");
((ImageView) findViewById2).setImageResource(2131232723);
if (com.htmedia.mint.utils.f0.Z1()) {
textView.setTextColor(ContextCompat.getColor(this, 2131100968));
} else {
textView.setTextColor(ContextCompat.getColor(this, 2131100905));
}
if (z) {
SpannableString spannableString = new SpannableString(oh.m.C(oh.m.C(oh.m.C(str, "<", BuildConfig.FLAVOR, false, 4, (Object) null), "$", BuildConfig.FLAVOR, false, 4, (Object) null), ">", BuildConfig.FLAVOR, false, 4, (Object) null));
spannableString.setSpan(new a(), spannableString.length() - 10, spannableString.length(), 33);
textView.setText(spannableString);
textView.setMovementMethod(LinkMovementMethod.getInstance());
} else {
String Q2 = com.htmedia.mint.utils.f0.Q2(str);
kotlin.jvm.internal.m.f(Q2, "replaceAllUnSupoortedChar(...)");
textView.setText(Html.fromHtml(Q2, 63).toString());
}
linearLayout.addView(inflate);
ViewGroup.LayoutParams layoutParams = inflate.getLayoutParams();
kotlin.jvm.internal.m.e(layoutParams, "null cannot be cast to non-null type android.widget.LinearLayout.LayoutParams");
LinearLayout.LayoutParams layoutParams2 = (LinearLayout.LayoutParams) layoutParams;
int dimension = (int) context.getResources().getDimension(2131165583);
layoutParams2.setMargins(dimension, 0, dimension, 0);
inflate.setLayoutParams(layoutParams2);
}
public final void O() {
if (com.htmedia.mint.utils.f0.Z1()) {
getWindow().setStatusBarColor(-16777216);
getWindow().getDecorView().setSystemUiVisibility(0);
Q().j.setBackgroundColor(getResources().getColor(2131100008));
Q().j.setTitleTextColor(ResourcesCompat.getColor(getResources(), 2131100951, (Resources.Theme) null));
Q().j.setNavigationIcon(2131231333);
return;
}
getWindow().setStatusBarColor(-1);
getWindow().getDecorView().setSystemUiVisibility(8192);
Q().j.setBackgroundColor(getResources().getColor(2131101002));
Q().j.setTitleTextColor(ResourcesCompat.getColor(getResources(), 2131100950, (Resources.Theme) null));
Q().j.setNavigationIcon(2131231330);
}
public final p5 P() {
p5 p5Var = this.b;
if (p5Var != null) {
return p5Var;
}
kotlin.jvm.internal.m.w("adapter");
return null;
}
public final x4.k2 Q() {
x4.k2 k2Var = this.a;
if (k2Var != null) {
return k2Var;
}
kotlin.jvm.internal.m.w("binding");
return null;
}
public final o5 R() {
o5 o5Var = this.c;
if (o5Var != null) {
return o5Var;
}
kotlin.jvm.internal.m.w("viewModel");
return null;
}
public final void U() {
com.htmedia.mint.utils.n.N(this, com.htmedia.mint.utils.n.Z1, "home", "home", null, BuildConfig.FLAVOR, com.htmedia.mint.utils.n.G0, "Enter Your prediction");
R().J().set(com.htmedia.mint.utils.f0.G1(this, "userToken"));
W();
}
public final void V() {
com.htmedia.mint.utils.n.N(this, com.htmedia.mint.utils.n.Z1, "home", "home", null, BuildConfig.FLAVOR, com.htmedia.mint.utils.n.G0, "Change");
R().J().set(com.htmedia.mint.utils.f0.G1(this, "userToken"));
W();
}
public final void X(p5 p5Var) {
kotlin.jvm.internal.m.g(p5Var, "<set-?>");
this.b = p5Var;
}
public final void Y(x4.k2 k2Var) {
kotlin.jvm.internal.m.g(k2Var, "<set-?>");
this.a = k2Var;
}
public final void Z() {
R().A().observe(this, new b(new c()));
}
public final void b0() {
Q().i.setLayoutManager(new LinearLayoutManager(this));
}
public final void c0(Context context, LinearLayout linearLayout) {
kotlin.jvm.internal.m.g(context, LogCategory.CONTEXT);
kotlin.jvm.internal.m.g(linearLayout, "linearLayout");
LayoutInflater.from(context);
ArrayList<String> points = getConfig().getPredictSensex().getTermCondition().getPoints();
int size = points.size();
linearLayout.removeAllViews();
for (int i = 0; i < size; i++) {
String str = points.get(i);
kotlin.jvm.internal.m.d(str);
M(linearLayout, str, context, false);
}
String linkText = getConfig().getPredictSensex().getTermCondition().getLinkText();
kotlin.jvm.internal.m.f(linkText, "getLinkText(...)");
M(linearLayout, linkText, context, true);
}
@Override
public void callbackMethod(LastPredictionResponse submitPredictionResponse) {
kotlin.jvm.internal.m.g(submitPredictionResponse, "submitPredictionResponse");
if (this.c != null) {
R().z().set(submitPredictionResponse);
}
}
public final void g0(o5 o5Var) {
kotlin.jvm.internal.m.g(o5Var, "<set-?>");
this.c = o5Var;
}
public final Config getConfig() {
Config config = this.d;
if (config != null) {
return config;
}
kotlin.jvm.internal.m.w(PaymentConstants.Category.CONFIG);
return null;
}
@Override
public void getGoldSilverTicker(List<GoldSilverResponse> goldSilverResponseList, String url) {
}
@Override
public void getLoserAndGainer(TickerPojo foryouPojo, String url) {
}
@Override
public void getMarketTicker(TickerPojo tickerPojo, String url) {
if (tickerPojo == null || tickerPojo.getTable() == null || tickerPojo.getTable().size() <= 0) {
return;
}
HomeFragment.tickerPojoObservableField.set(tickerPojo);
int size = tickerPojo.getTable().size();
for (int i = 0; i < size; i++) {
if (!TextUtils.isEmpty(tickerPojo.getTable().get(i).getINDEXNAME())) {
String indexname = tickerPojo.getTable().get(i).getINDEXNAME();
kotlin.jvm.internal.m.f(indexname, "getINDEXNAME(...)");
if (oh.m.L(indexname, "BSE SENSEX", false, 2, (Object) null)) {
HomeFragment.tableObservableField.set(tickerPojo.getTable().get(i));
return;
}
}
}
}
protected void onCreate(Bundle savedInstanceState) {
super/*androidx.fragment.app.FragmentActivity*/.onCreate(savedInstanceState);
x4.k2 contentView = DataBindingUtil.setContentView(this, 2131624018);
kotlin.jvm.internal.m.f(contentView, "setContentView(...)");
Y(contentView);
g0((o5) new ViewModelProvider(this).get(o5.class));
Config r0 = com.htmedia.mint.utils.f0.r0();
kotlin.jvm.internal.m.f(r0, "getConfig(...)");
setConfig(r0);
d0();
LinearLayout linearLayout = Q().s;
kotlin.jvm.internal.m.f(linearLayout, "tvTermConditionDetail");
c0(this, linearLayout);
b0();
Z();
O();
PredictSensex predictSensex = com.htmedia.mint.utils.f0.r0().getPredictSensex();
com.htmedia.mint.utils.n.A(this, com.htmedia.mint.utils.n.U0, predictSensex != null ? predictSensex.getLeaderboardUrl() : null, com.htmedia.mint.utils.n.H0, null, "home");
Q().c(Boolean.valueOf(com.htmedia.mint.utils.f0.Z1()));
Q().a.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
PredictionLeaderBoardActivity.S(PredictionLeaderBoardActivity.this, view);
}
});
Q().p.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
PredictionLeaderBoardActivity.T(PredictionLeaderBoardActivity.this, view);
}
});
N();
}
@Override
public void onError(String error, String url) {
}
protected void onResume() {
super/*androidx.fragment.app.FragmentActivity*/.onResume();
o5 R = R();
Config r0 = com.htmedia.mint.utils.f0.r0();
kotlin.jvm.internal.m.f(r0, "getConfig(...)");
R.P(r0);
R().K(com.htmedia.mint.utils.f0.G1(this, "userToken"));
R().m();
Q().d(R());
a0();
}
public final void setConfig(Config config) {
kotlin.jvm.internal.m.g(config, "<set-?>");
this.d = config;
}
}