正在查看: Hyouka private v5.8.9 应用的 UpdateAppActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hyouka private v5.8.9 应用的 UpdateAppActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.beint.project.screens;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.beint.project.AbstractZangiActivity;
import com.beint.project.screens.sms.AppModeNotifierActivity;
import com.beint.project.screens.ui.UpdateAppActivityUi;
import java.util.List;
public final class UpdateAppActivity extends AppModeNotifierActivity {
private UpdateAppActivityUi activityView;
public static final void onCreate$lambda$0(UpdateAppActivity updateAppActivity, View view) {
kotlin.jvm.internal.k.f(updateAppActivity, "this$0");
updateAppActivity.openAppInPlayMarket();
}
private final void openAppInPlayMarket() {
String packageName = getPackageName();
kotlin.jvm.internal.k.e(packageName, "packageName");
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + packageName));
List<ResolveInfo> queryIntentActivities = getPackageManager().queryIntentActivities(intent, 0);
kotlin.jvm.internal.k.e(queryIntentActivities, "packageManager.queryInte…Activities(rateIntent, 0)");
for (ResolveInfo resolveInfo : queryIntentActivities) {
if (kotlin.jvm.internal.k.b(resolveInfo.activityInfo.applicationInfo.packageName, "com.android.vending")) {
ActivityInfo activityInfo = resolveInfo.activityInfo;
ComponentName componentName = new ComponentName(activityInfo.applicationInfo.packageName, activityInfo.name);
intent.addFlags(268435456);
intent.addFlags(2097152);
intent.addFlags(67108864);
intent.setComponent(componentName);
startActivity(intent);
return;
}
}
}
public void onBackPressed() {
AbstractZangiActivity.goToBackground();
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
UpdateAppActivityUi updateAppActivityUi = new UpdateAppActivityUi(this);
this.activityView = updateAppActivityUi;
setContentView(updateAppActivityUi);
overridePendingTransition(0, 0);
UpdateAppActivityUi updateAppActivityUi2 = this.activityView;
if (updateAppActivityUi2 == null) {
kotlin.jvm.internal.k.q("activityView");
updateAppActivityUi2 = null;
}
Button refreshButton = updateAppActivityUi2.getRefreshButton();
if (refreshButton != null) {
refreshButton.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
UpdateAppActivity.onCreate$lambda$0(UpdateAppActivity.this, view);
}
});
}
}
}