正在查看: Hopscotch v9.7.2 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hopscotch v9.7.2 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package in.hopscotch.android.helper;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.i;
import in.hopscotch.android.activity.customerinfo.LoginActivity;
import in.hopscotch.android.attribution.OrderAttributionHelper;
import in.hopscotch.android.common.util.v;
import in.hopscotch.android.model.UserStatus;
import in.hopscotch.android.ui.webapp.WebAppActivity;
import in.hopscotch.android.util.a1;
import in.hopscotch.android.util.j1;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
public final class d {
@NotNull
public static final d a = new d();
private d() {
}
public static Intent a(Context context, @NotNull String fromScreen, @NotNull String fromLocation) {
Intrinsics.checkNotNullParameter(fromScreen, "fromScreen");
Intrinsics.checkNotNullParameter(fromLocation, "fromLocation");
if (context == null) {
return null;
}
String str = a1.a;
v.a.getClass();
String j = android.support.v4.media.b.j("https://www.hopscotch.in/v2/wishlist?fromScreen=", v.a.a(fromScreen), "&fromLocation=", v.a.a(fromLocation));
OrderAttributionHelper.getInstance().addAttributionData("Wishlist", (String) null, 0, "Wishlist", "Wishlist", "Wishlist", (String) null, (String) null, (String) null, (String) null);
WebAppActivity.q.getClass();
return WebAppActivity.a.a(context, j, fromScreen, fromLocation, false, true, true, true, "Wishlist CTR", true, "Wishlist");
}
public static final void b(@NotNull Context context, @NotNull String fromScreen, @NotNull String redirectType, int i) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(fromScreen, "fromScreen");
Intrinsics.checkNotNullParameter(redirectType, "redirectType");
if (UserStatus.getInstance().getLoginStatus()) {
a.getClass();
c(context, fromScreen, "Wishlist button");
} else {
LoginActivity.a aVar = LoginActivity.i;
i d = j1.d(context);
aVar.getClass();
LoginActivity.a.e(d, fromScreen, "Wishlist button", redirectType, false, (Bundle) null, i);
}
}
public static void c(Context context, @NotNull String fromScreen, @NotNull String fromLocation) {
Intrinsics.checkNotNullParameter(fromScreen, "fromScreen");
Intrinsics.checkNotNullParameter(fromLocation, "fromLocation");
if (context != null) {
context.startActivity(a(context, fromScreen, fromLocation));
}
}
}