无痛单词 v1.8.1版本的 MD5 值为:7ae56c6858542fe70230b6be4f1a4b5a
以下内容为反编译后的 MarketUtilKt.java 源代码,内容仅作参考
package tech.xiangzi.painless.utils;
import android.content.Intent;
import android.net.Uri;
import android.net.wifi.IntentsKt;
import androidx.fragment.app.FragmentActivity;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\u001a\u0012\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004¨\u0006\u0005"}, d2 = {"launchAppMarket", "", "Landroidx/fragment/app/FragmentActivity;", "packageName", "", "app_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
public final class MarketUtilKt {
public static final void launchAppMarket(@NotNull FragmentActivity fragmentActivity, @NotNull String packageName) {
Intrinsics.checkNotNullParameter(fragmentActivity, "<this>");
Intrinsics.checkNotNullParameter(packageName, "packageName");
Uri parse = Uri.parse("market://details?id=" + packageName);
Intrinsics.checkNotNullExpressionValue(parse, "parse(\"market://details?id=${packageName}\")");
Intent intent = new Intent("android.intent.action.VIEW", parse);
intent.addFlags(268435456);
if (intent.resolveActivity(fragmentActivity.getPackageManager()) != null) {
fragmentActivity.startActivity(intent);
} else {
IntentsKt.browse("https://dislikeapp.com/", true);
}
}
}