正在查看: Pulsar v1.0.0 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Pulsar v1.0.0 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package k6;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import com.facebook.react.ReactActivity;
import com.mt.MTMainActivity;
import com.mt.MTMainApplication;
import org.jetbrains.annotations.NotNull;
public final class b {
@NotNull
public static final b a = new b();
private b() {
}
private final boolean a() {
try {
PackageManager packageManager = MTMainApplication.INSTANCE.getMApplication().getPackageManager();
PackageInfo packageInfo = packageManager.getPackageInfo("com.android.vending", 0);
int applicationEnabledSetting = packageManager.getApplicationEnabledSetting("com.android.vending");
return (applicationEnabledSetting == 0 || applicationEnabledSetting == 1) && packageInfo != null;
} catch (Exception unused) {
return false;
}
}
public final void mtRequestGPAppReview() {
if (!c.a.mtIsGooglePlayServicesAvailable()) {
ReactActivity mActivity = MTMainActivity.INSTANCE.getMActivity();
if (mActivity != null) {
mActivity.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=com.pulsar.fintech.credit.viva")));
return;
}
return;
}
try {
if (a()) {
ReactActivity mActivity2 = MTMainActivity.INSTANCE.getMActivity();
if (mActivity2 != null) {
mActivity2.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=com.pulsar.fintech.credit.viva")));
}
} else {
ReactActivity mActivity3 = MTMainActivity.INSTANCE.getMActivity();
if (mActivity3 != null) {
mActivity3.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=com.pulsar.fintech.credit.viva")));
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
}