Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 k.java 源代码,内容仅作参考
package myobfuscated.n7;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import com.amazon.device.ads.DtbConstants;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
public final class k {
@NotNull
public final j a;
public k(@NotNull j webviewClientListener) {
Intrinsics.checkNotNullParameter(webviewClientListener, "webviewClientListener");
this.a = webviewClientListener;
}
public final boolean a(@NotNull Uri uri) {
j jVar = this.a;
Intrinsics.checkNotNullParameter(uri, "uri");
try {
try {
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(uri);
jVar.getAdViewContext().startActivity(intent);
jVar.onAdLeftApplication();
return true;
} catch (RuntimeException unused) {
myobfuscated.m7.a.a(this, "App stores and browsers not found");
return false;
}
} catch (ActivityNotFoundException unused2) {
myobfuscated.m7.d.a(jVar.getAdViewContext(), uri);
jVar.onAdLeftApplication();
return true;
}
}
public final void b(@NotNull Uri uri, @NotNull String url) {
int E;
Intrinsics.checkNotNullParameter(url, "url");
Intrinsics.checkNotNullParameter(uri, "uri");
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(uri);
j jVar = this.a;
if (jVar.getAdViewContext().getPackageManager().getLaunchIntentForPackage("com.amazon.mShop.android.shopping") == null && (E = kotlin.text.d.E(url, "products/", 0, false, 6)) > 0) {
String substring = url.substring(E + 9);
Intrinsics.checkNotNullExpressionValue(substring, "this as java.lang.String).substring(startIndex)");
intent.setData(Uri.parse(Intrinsics.l(substring, "https://www.amazon.com/dp/")));
}
jVar.getAdViewContext().startActivity(intent);
jVar.onAdLeftApplication();
}
public final boolean c(@NotNull String url) {
int i;
Intrinsics.checkNotNullParameter(url, "url");
int E = kotlin.text.d.E(url, "//", 0, false, 6);
if (E < 0 || (i = E + 2) >= url.length()) {
return false;
}
String substring = url.substring(i);
Intrinsics.checkNotNullExpressionValue(substring, "this as java.lang.String).substring(startIndex)");
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(Intrinsics.l(substring, DtbConstants.HTTPS)));
j jVar = this.a;
jVar.getAdViewContext().startActivity(intent);
jVar.onAdLeftApplication();
return true;
}
public final boolean d(@NotNull String url) {
Intrinsics.checkNotNullParameter(url, "url");
try {
Intrinsics.checkNotNullParameter(url, "url");
Uri uri = Uri.parse(url);
Intrinsics.checkNotNullExpressionValue(uri, "parse(url)");
if (uri != null && uri.getScheme() != null) {
String scheme = uri.getScheme();
if (Intrinsics.c(scheme, "com.amazon.mobile.shopping.web")) {
return c(url);
}
if (!Intrinsics.c(scheme, "com.amazon.mobile.shopping")) {
if (!Intrinsics.c(scheme, "market") && !Intrinsics.c(scheme, "amzn")) {
Intrinsics.checkNotNullParameter(uri, "uri");
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(uri);
j jVar = this.a;
jVar.getAdViewContext().startActivity(intent);
jVar.onAdLeftApplication();
}
return a(uri);
}
b(uri, url);
return true;
}
return false;
} catch (Exception unused) {
return false;
}
}
}