正在查看: Hopscotch v9.7.2 应用的 z.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hopscotch v9.7.2 应用的 z.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package in.hopscotch.android.util;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.text.TextUtils;
import in.hopscotch.android.activity.HSWebviewActivity;
import in.hopscotch.android.api.factory.AccountCardApiFactory;
import in.hopscotch.android.model.UserStatus;
public final class z {
private static z helpCenterUtil;
private z() {
}
public static void a(z zVar, Context context, String str, String str2) {
zVar.getClass();
Intent intent = new Intent(context, (Class<?>) HSWebviewActivity.class);
if (TextUtils.isEmpty(str)) {
intent.putExtra("WEB_URL", str2 + "?id=app&site=android");
} else {
intent.putExtra("WEB_URL", android.support.v4.media.d.e(str2, "?loginTicket=", str, "&id=app&site=android"));
}
intent.putExtra("INTENT_EXTRA_TITLE", context.getString(2132018135));
intent.setFlags(268435456);
context.startActivity(intent);
}
public static synchronized z b() {
z zVar;
synchronized (z.class) {
try {
if (helpCenterUtil == null) {
helpCenterUtil = new z();
}
zVar = helpCenterUtil;
} catch (Throwable th) {
throw th;
}
}
return zVar;
}
public static void d(Context context) {
Intent intent = new Intent("android.intent.action.DIAL");
intent.addFlags(268435456);
String string = in.hopscotch.android.db.a.x().getString("CUSTOMER_CARE_CONTACT", "");
if (!TextUtils.isEmpty(string)) {
intent.setData(Uri.parse("tel:" + string));
}
context.startActivity(intent);
}
public static void f(Context context, String str) {
Intent intent = new Intent(context, (Class<?>) HSWebviewActivity.class);
if (TextUtils.isEmpty(str)) {
intent.putExtra("WEB_URL", in.hopscotch.android.db.a.x().getString("contact_us_link", "https://www.hopscotch.in/helpcenter/#/contact_us?") + "id=app&site=android");
} else {
intent.putExtra("WEB_URL", in.hopscotch.android.db.a.x().getString("contact_us_link", "https://www.hopscotch.in/helpcenter/#/contact_us?") + "loginTicket=" + str + "&id=app&site=android");
}
intent.putExtra("INTENT_EXTRA_TITLE", context.getString(2132017663));
intent.setFlags(268435456);
context.startActivity(intent);
}
public static void g(Context context, String str) {
Intent intent = new Intent(context, (Class<?>) HSWebviewActivity.class);
if (TextUtils.isEmpty(str)) {
intent.putExtra("WEB_URL", in.hopscotch.android.db.a.x().getString("help_center_link", "https://www.hopscotch.in/helpcenter/#/?") + "id=app&site=android");
} else {
intent.putExtra("WEB_URL", in.hopscotch.android.db.a.x().getString("help_center_link", "https://www.hopscotch.in/helpcenter/#/?") + "loginTicket=" + str + "&id=app&site=android");
}
intent.putExtra("INTENT_EXTRA_TITLE", context.getString(2132018135));
intent.setFlags(268435456);
context.startActivity(intent);
}
public final void c(Context context, String str) {
if (UserStatus.getInstance().getLoginStatus()) {
AccountCardApiFactory.getInstance().generateLoginTicketCall(new y(this, context, str));
} else {
g(context, null);
}
}
public final void e(Context context) {
if (UserStatus.getInstance().getLoginStatus()) {
AccountCardApiFactory.getInstance().generateLoginTicketCall(new x(this, true, context));
} else {
g(context, null);
}
}
}