正在查看: Mint v5.7.3 应用的 t.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 t.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package f8;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.view.View;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.AlphaAnimation;
import androidx.appcompat.app.AppCompatActivity;
import com.htmedia.mint.AppController;
import com.htmedia.mint.ui.fragments.TechnicalTrendBottomSheet;
import com.snowplowanalytics.snowplow.tracker.constants.Parameters;
import com.thoughtbot.expandablerecyclerview.BuildConfig;
import org.json.JSONObject;
import x4.e8;
public class t implements k6.q, View.OnClickListener {
private final e8 a;
private final AppCompatActivity c;
private k6.p d;
private final Context e;
private String f;
private String g;
private Handler s;
private final String b = "TechnicalTrend";
private final String h = "bearish";
private final String i = "Moderately Bearish";
private final String j = "neutral";
private final String o = "Moderately Bullish";
private final String p = "bullish";
private final String q = "na";
private final boolean r = false;
private final int t = 0;
private boolean u = false;
class a implements Runnable {
a() {
}
@Override
public void run() {
AlphaAnimation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);
alphaAnimation.setDuration(750L);
alphaAnimation.setInterpolator(new AccelerateDecelerateInterpolator());
t.this.a.q.setAlpha(1.0f);
t.this.a.r.setAlpha(1.0f);
t.this.a.q.animate().translationX(17.0f).setDuration(750L).setInterpolator(new AccelerateDecelerateInterpolator());
t.this.a.r.animate().translationX(17.0f).setDuration(750L).setInterpolator(new AccelerateDecelerateInterpolator());
t.this.a.q.startAnimation(alphaAnimation);
t.this.a.r.startAnimation(alphaAnimation);
}
}
public t(e8 e8Var, AppCompatActivity appCompatActivity, Context context, String str, String str2) {
this.a = e8Var;
this.c = appCompatActivity;
this.e = context;
this.f = str;
this.g = str2;
}
private void b(float f) {
if (this.u) {
return;
}
this.a.q.animate().translationX(-40.0f);
this.a.r.animate().translationX(-40.0f);
this.a.q.setAlpha(0.0f);
this.a.r.setAlpha(0.0f);
this.u = !this.u;
this.a.q.requestLayout();
this.a.r.requestLayout();
new Handler().postDelayed(new a(), (long) (f * 1000.0f));
}
private void d(String str, String str2, String str3) {
String e = e(str, str2);
if (TextUtils.isEmpty(str3)) {
this.a.j.setText(e);
} else {
this.a.j.setText(str3);
}
this.a.h.setOnClickListener(this);
this.a.g.setOnClickListener(this);
this.s = new Handler(Looper.getMainLooper());
b(0.5f);
}
public void c() {
k6.p pVar = new k6.p(this.e, this, "TechnicalTrend");
this.d = pVar;
pVar.r("https://api-mintgenie.livemint.com/api-gateway/fundamental/markets-data/live-price/v4?tickerId=" + this.f + "&exchangeCode=BSE");
this.a.e(Boolean.valueOf(AppController.j().E()));
}
public String e(String str, String str2) {
String str3;
if (str.equalsIgnoreCase("bearish")) {
this.a.b.setImageResource(2131231379);
if (str2.equalsIgnoreCase("bearish")) {
this.a.a.setImageResource(2131231379);
return "The stock is in strong downtrend and investors should be cautious";
}
if (str2.equalsIgnoreCase("Moderately Bearish")) {
this.a.a.setImageResource(2131233531);
return "The stock is signalling continuation of the bearish trend.";
}
if (str2.equalsIgnoreCase("neutral")) {
this.a.a.setImageResource(2131233709);
return "Investors should be cautious as the stock might have broken crucial support levels and there can be more price erosion in future.";
}
if (str2.equalsIgnoreCase("Moderately Bullish")) {
this.a.a.setImageResource(2131233532);
return "Technical trend indicates reversal of bullish trend.";
}
if (str2.equalsIgnoreCase("bullish")) {
this.a.a.setImageResource(2131231644);
return "The stock is showing signs of trend reversal after a strong uptrend.";
}
if (str2.equalsIgnoreCase("na")) {
this.a.o.setVisibility(8);
this.a.p.setVisibility(8);
this.a.e.setVisibility(8);
this.a.f.setVisibility(8);
this.a.b.setVisibility(8);
this.a.a.setVisibility(8);
return "Trends unavailable at the moment.";
}
} else if (str.equalsIgnoreCase("Moderately Bearish")) {
this.a.b.setImageResource(2131233531);
if (str2.equalsIgnoreCase("bearish")) {
this.a.a.setImageResource(2131231379);
return "The stock is in strong downtrend and investors should be cautious.";
}
if (str2.equalsIgnoreCase("Moderately Bearish")) {
this.a.a.setImageResource(2131233531);
return "The stock is in downtrend and there are no clear signs of reversal of trend.";
}
if (str2.equalsIgnoreCase("neutral")) {
this.a.a.setImageResource(2131233709);
return "Stock is showing negative near term movement after consolidation but investors should wait for bearish confiormation before taking short positions.";
}
if (str2.equalsIgnoreCase("Moderately Bullish")) {
this.a.a.setImageResource(2131233532);
return "Technical trend shows initial signs of momentum change and investors should monitor further.";
}
if (str2.equalsIgnoreCase("bullish")) {
this.a.a.setImageResource(2131231644);
return "The stock is showing initial signs of trend reversal after a strong uptrend. Investors need to monitor further.";
}
if (str2.equalsIgnoreCase("na")) {
this.a.o.setVisibility(8);
this.a.p.setVisibility(8);
this.a.e.setVisibility(8);
this.a.f.setVisibility(8);
this.a.b.setVisibility(8);
this.a.a.setVisibility(8);
return "Trends unavailable at the moment.";
}
} else {
if (str.equalsIgnoreCase("neutral")) {
this.a.b.setImageResource(2131233709);
str3 = "The stock is showing signs of bottoming out but investors should wait for a bullish short term trend for confirmed reversal.";
if (str2.equalsIgnoreCase("bearish")) {
this.a.a.setImageResource(2131231379);
} else if (str2.equalsIgnoreCase("Moderately Bearish")) {
this.a.a.setImageResource(2131233531);
} else {
if (str2.equalsIgnoreCase("neutral")) {
this.a.a.setImageResource(2131233709);
return "The technical trend indicates consolidation phase for this stock. There can be sharp movements on either side post a consolidation phase.";
}
if (str2.equalsIgnoreCase("Moderately Bullish")) {
this.a.a.setImageResource(2131233532);
return "Stock is showing positive near term movement after consolidation but investors should wait for bullish confiormation before taking long positions.";
}
if (str2.equalsIgnoreCase("bullish")) {
this.a.a.setImageResource(2131231644);
return "The intensity of the bullish trend has reduced but investors should wait for a bearish short term trend for confirmed reversal.";
}
if (str2.equalsIgnoreCase("na")) {
this.a.o.setVisibility(8);
this.a.p.setVisibility(8);
this.a.e.setVisibility(8);
this.a.f.setVisibility(8);
this.a.b.setVisibility(8);
this.a.a.setVisibility(8);
return "Trends unavailable at the moment.";
}
}
return str3;
}
if (!str.equalsIgnoreCase("Moderately Bullish")) {
if (!str.equalsIgnoreCase("bullish")) {
this.a.o.setVisibility(8);
this.a.p.setVisibility(8);
this.a.e.setVisibility(8);
this.a.f.setVisibility(8);
this.a.b.setVisibility(8);
this.a.a.setVisibility(8);
return "Trends unavailable at the moment.";
}
this.a.b.setImageResource(2131231644);
if (str2.equalsIgnoreCase("bearish")) {
this.a.a.setImageResource(2131231379);
return "The stock is showing signs of trend reversal after a strong downtrend.";
}
if (str2.equalsIgnoreCase("Moderately Bearish")) {
this.a.a.setImageResource(2131233531);
return "The stock is showing strong signs of trend reversal after a downtrend.";
}
if (str2.equalsIgnoreCase("neutral")) {
this.a.a.setImageResource(2131233709);
return "Stock might have broken crucial resistance levels and there can be more price increase in future.";
}
str3 = "The stock is in strong bullish trend and investors should continue to hold.";
if (str2.equalsIgnoreCase("Moderately Bullish")) {
this.a.a.setImageResource(2131233532);
} else if (str2.equalsIgnoreCase("bullish")) {
this.a.a.setImageResource(2131231644);
} else if (str2.equalsIgnoreCase("na")) {
this.a.o.setVisibility(8);
this.a.p.setVisibility(8);
this.a.e.setVisibility(8);
this.a.f.setVisibility(8);
this.a.b.setVisibility(8);
this.a.a.setVisibility(8);
return "Trends unavailable at the moment.";
}
return str3;
}
this.a.b.setImageResource(2131233532);
if (str2.equalsIgnoreCase("bearish")) {
this.a.a.setImageResource(2131231379);
return "The stock is showing initial signs of trend reversal after a strong downtrend. Investors need to monitor further.";
}
if (str2.equalsIgnoreCase("Moderately Bearish")) {
this.a.a.setImageResource(2131233531);
return "The stock is showing initial signs of trend reversal after a downtrend.";
}
if (str2.equalsIgnoreCase("neutral")) {
this.a.a.setImageResource(2131233709);
return "Stock is showing positive near term movement after consolidation but investors should wait for bullish confiormation before taking long positions.";
}
if (str2.equalsIgnoreCase("Moderately Bullish")) {
this.a.a.setImageResource(2131233532);
return "The stock price showing signs of continuation of bull run.";
}
if (str2.equalsIgnoreCase("bullish")) {
this.a.a.setImageResource(2131231644);
return "The stock price is showing signs of a strengthening bull run.";
}
if (str2.equalsIgnoreCase("na")) {
this.a.o.setVisibility(8);
this.a.p.setVisibility(8);
this.a.e.setVisibility(8);
this.a.f.setVisibility(8);
this.a.b.setVisibility(8);
this.a.a.setVisibility(8);
return "Trends unavailable at the moment.";
}
}
return BuildConfig.FLAVOR;
}
@Override
public void getAboutCompanyData(JSONObject jSONObject, String str) {
if (jSONObject != null) {
try {
d(jSONObject.optString("shortTermTrends"), jSONObject.optString("longTermTrends"), jSONObject.optString(Parameters.CD_DESCRIPTION));
} catch (Exception e) {
e.printStackTrace();
}
}
}
@Override
public void onClick(View view) {
int id2 = view.getId();
if (id2 == 2131429544) {
this.c.getSupportFragmentManager().beginTransaction().add(TechnicalTrendBottomSheet.INSTANCE.newInstance("Long Term"), "bottomSheet").commitAllowingStateLoss();
} else {
if (id2 != 2131429580) {
return;
}
this.c.getSupportFragmentManager().beginTransaction().add(TechnicalTrendBottomSheet.INSTANCE.newInstance("Short Term"), "bottomSheet").commitAllowingStateLoss();
}
}
@Override
public void onError(String str, String str2) {
}
}