正在查看: Hyouka private v5.8.9 应用的 RateZangiApp.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Hyouka private v5.8.9 应用的 RateZangiApp.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.beint.project.screens;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.FragmentActivity;
import com.beint.project.core.services.impl.StorageService;
import com.beint.project.core.utils.Constants;
import com.beint.project.core.utils.Log;
import com.beint.project.screens.BaseScreen;
public final class RateZangiApp extends BaseScreen {
private final String TAG;
private IRateShareInviteActivity mIRateShareInviteActivity;
public RateZangiApp() {
String canonicalName = RateZangiApp.class.getCanonicalName();
this.TAG = canonicalName;
setScreenId(canonicalName);
setScreenType(BaseScreen.SCREEN_TYPE.R_SH_IN_RATE);
}
public static final void onCreateView$lambda$0(RateZangiApp rateZangiApp, View view) {
kotlin.jvm.internal.k.f(rateZangiApp, "this$0");
IRateShareInviteActivity iRateShareInviteActivity = rateZangiApp.mIRateShareInviteActivity;
kotlin.jvm.internal.k.c(iRateShareInviteActivity);
iRateShareInviteActivity.saveState(1, System.currentTimeMillis(), false);
rateZangiApp.rateApplication(rateZangiApp.getActivity());
FragmentActivity activity = rateZangiApp.getActivity();
if (activity != null) {
activity.finish();
}
}
public static final void onCreateView$lambda$1(RateZangiApp rateZangiApp, View view) {
kotlin.jvm.internal.k.f(rateZangiApp, "this$0");
IRateShareInviteActivity iRateShareInviteActivity = rateZangiApp.mIRateShareInviteActivity;
kotlin.jvm.internal.k.c(iRateShareInviteActivity);
iRateShareInviteActivity.saveState(0, System.currentTimeMillis(), true);
FragmentActivity activity = rateZangiApp.getActivity();
if (activity != null) {
activity.finish();
}
}
public static final void onCreateView$lambda$2(RateZangiApp rateZangiApp, View view) {
kotlin.jvm.internal.k.f(rateZangiApp, "this$0");
IRateShareInviteActivity iRateShareInviteActivity = rateZangiApp.mIRateShareInviteActivity;
kotlin.jvm.internal.k.c(iRateShareInviteActivity);
iRateShareInviteActivity.saveState(0, System.currentTimeMillis(), true);
FragmentActivity activity = rateZangiApp.getActivity();
if (activity != null) {
activity.finish();
}
}
public static final void onCreateView$lambda$3(RateZangiApp rateZangiApp, View view) {
kotlin.jvm.internal.k.f(rateZangiApp, "this$0");
IRateShareInviteActivity iRateShareInviteActivity = rateZangiApp.mIRateShareInviteActivity;
kotlin.jvm.internal.k.c(iRateShareInviteActivity);
iRateShareInviteActivity.saveState(1, System.currentTimeMillis(), false);
FragmentActivity activity = rateZangiApp.getActivity();
if (activity != null) {
activity.finish();
}
}
private final void rateApplication(Activity activity) {
StringBuilder sb = new StringBuilder();
sb.append("http://play.google.com/store/apps/details?id=");
kotlin.jvm.internal.k.c(activity);
sb.append(activity.getPackageName());
try {
activity.startActivityForResult(new Intent("android.intent.action.VIEW", Uri.parse(sb.toString())), 100);
StorageService.INSTANCE.setSettings(Constants.IS_RATTED_CLICKED, "true");
} catch (ActivityNotFoundException e) {
Log.i(this.TAG, e.getMessage());
}
}
@Override
public n0.a getDefaultViewModelCreationExtras() {
return androidx.lifecycle.h.a(this);
}
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
kotlin.jvm.internal.k.f(layoutInflater, "inflater");
View inflate = layoutInflater.inflate(2131558723, viewGroup, false);
inflate.findViewById(2131362039).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
RateZangiApp.onCreateView$lambda$0(RateZangiApp.this, view);
}
});
inflate.findViewById(2131362211).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
RateZangiApp.onCreateView$lambda$1(RateZangiApp.this, view);
}
});
inflate.findViewById(2131362041).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
RateZangiApp.onCreateView$lambda$2(RateZangiApp.this, view);
}
});
inflate.findViewById(2131363133).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
RateZangiApp.onCreateView$lambda$3(RateZangiApp.this, view);
}
});
return inflate;
}
public final void setInterface(IRateShareInviteActivity iRateShareInviteActivity) {
this.mIRateShareInviteActivity = iRateShareInviteActivity;
}
}