Swiggy v4.51.1版本的 MD5 值为:5af7ec91512a0a8c1510e3f8bac20b8b
以下内容为反编译后的 a.java 源代码,内容仅作参考
package in.swiggy.android.dash.tracking.cards;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import in.swiggy.android.commons.utils.f0;
import in.swiggy.android.dash.intents.d;
import in.swiggy.android.dash.l;
import in.swiggy.android.dash.tracking.TrackingFragment;
import in.swiggy.android.tejas.oldapi.models.track.cards.carddata.TrackCardCTATypes;
import kotlin.jvm.internal.o;
public final class a implements c {
private final TrackingFragment a;
private final SharedPreferences b;
public a(TrackingFragment fragment, SharedPreferences sharedPreferences) {
o.k(fragment, "fragment");
o.k(sharedPreferences, "sharedPreferences");
this.a = fragment;
this.b = sharedPreferences;
}
@Override
public void H() {
try {
this.a.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=in.swiggy.android")));
} catch (Exception unused) {
this.a.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=in.swiggy.android")));
}
}
@Override
public void U(String link) {
o.k(link, "link");
new in.swiggy.android.deeplink.utils.a().c(link);
TrackingFragment trackingFragment = this.a;
trackingFragment.startActivity(d.a.a(trackingFragment.getContext(), "WEBLINK", link, ""));
}
@Override
public void V() {
TrackingFragment trackingFragment = this.a;
trackingFragment.startActivity(in.swiggy.android.dash.intents.c.a.a(trackingFragment.getContext()));
}
@Override
public void W() {
String str;
Context context = this.a.getContext();
String str2 = null;
if (context != null) {
str = context.getString(l.nps_redirect_url);
} else {
str = null;
}
if (f0.g(this.b.getString("android_cta_hyperlink", ""))) {
str2 = this.b.getString("android_cta_hyperlink", "");
} else {
Context context2 = this.a.getContext();
if (context2 != null) {
str2 = context2.getString(l.nps_redirect_url);
}
}
TrackingFragment trackingFragment = this.a;
trackingFragment.startActivity(d.a.a(trackingFragment.getContext(), TrackCardCTATypes.NPS, str2, str));
}
@Override
public void X(String str, String str2) {
Context context;
if (str != null && (context = this.a.getContext()) != null) {
in.swiggy.android.dash.intents.a aVar = in.swiggy.android.dash.intents.a.a;
o.h(context);
this.a.startActivity(aVar.a(context, str, str2));
}
}
@Override
public void a() {
TrackingFragment trackingFragment = this.a;
trackingFragment.startActivity(d.a.a(trackingFragment.getContext(), "SUPER_LANDING", "https://www.swiggy.com/swiggy-super", ""));
}
@Override
public void q(String link) {
o.k(link, "link");
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse(link));
this.a.startActivity(intent);
}
}