Maxcredito v1.2.1版本的 MD5 值为:2605738f37f8ddb81288799ddcbfcbe8
以下内容为反编译后的 a.java 源代码,内容仅作参考
package g.j.a.a.r.b.a;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
import com.facebook.appevents.internal.ViewHierarchyConstants;
import com.hiii.mobile.track.TrackerManager;
import com.maxcredito.mexico.fast.cash.prestamo.loan.R;
import com.sensorsdata.analytics.android.sdk.SensorsDataAutoTrackHelper;
import com.sensorsdata.analytics.android.sdk.SensorsDataInstrumented;
import e.r.a.c;
import j.z.c.t;
public final class a extends c {
public static final class ViewOnClickListenerC0207a implements View.OnClickListener {
public ViewOnClickListenerC0207a() {
}
@Override
@SensorsDataInstrumented
public final void onClick(View view) {
a.this.dismiss();
TrackerManager trackerManager = TrackerManager.a;
Context requireContext = a.this.requireContext();
t.e(requireContext, "requireContext()");
TrackerManager.i(trackerManager, requireContext, "rate_dialog_cancel", null, 4, null);
SensorsDataAutoTrackHelper.trackViewOnClick(view);
}
}
public static final class b implements View.OnClickListener {
public b() {
}
@Override
@SensorsDataInstrumented
public final void onClick(View view) {
TrackerManager trackerManager = TrackerManager.a;
Context requireContext = a.this.requireContext();
t.e(requireContext, "requireContext()");
TrackerManager.i(trackerManager, requireContext, "rate_dialog_ok", null, 4, null);
a aVar = a.this;
Context requireContext2 = aVar.requireContext();
t.e(requireContext2, "requireContext()");
aVar.m(requireContext2);
a.this.dismiss();
SensorsDataAutoTrackHelper.trackViewOnClick(view);
}
}
public final void m(Context context) {
try {
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse("market://details?id=" + context.getPackageName()));
intent.setPackage("com.android.vending");
intent.addFlags(268435456);
if (intent.resolveActivity(context.getPackageManager()) != null) {
context.startActivity(intent);
} else {
Intent intent2 = new Intent("android.intent.action.VIEW");
intent2.setData(Uri.parse("https://play.google.com/store/apps/details?id=" + context.getPackageName()));
intent.addFlags(268435456);
if (intent2.resolveActivity(context.getPackageManager()) != null) {
context.startActivity(intent2);
}
}
} catch (Exception unused) {
Intent intent3 = new Intent("android.intent.action.VIEW");
intent3.setData(Uri.parse("https://play.google.com/store/apps/details?id=" + context.getPackageName()));
intent3.addFlags(268435456);
if (intent3.resolveActivity(context.getPackageManager()) != null) {
context.startActivity(intent3);
}
}
}
public final void n() {
Dialog dialog = getDialog();
Window window = dialog != null ? dialog.getWindow() : null;
if (window != null) {
WindowManager.LayoutParams attributes = window.getAttributes();
Resources resources = getResources();
t.e(resources, "resources");
attributes.width = (resources.getDisplayMetrics().widthPixels * 320) / 360;
attributes.gravity = 17;
window.setAttributes(attributes);
}
}
@Override
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
t.f(layoutInflater, "inflater");
return LayoutInflater.from(requireContext()).inflate(R.layout.cl, (ViewGroup) null);
}
@Override
@SensorsDataInstrumented
public void onHiddenChanged(boolean z) {
super.onHiddenChanged(z);
SensorsDataAutoTrackHelper.trackOnHiddenChanged(this, z);
}
@Override
@SensorsDataInstrumented
public void onResume() {
super.onResume();
SensorsDataAutoTrackHelper.trackFragmentResume(this);
}
@Override
public void onStart() {
super.onStart();
n();
}
@Override
@SensorsDataInstrumented
public void onViewCreated(View view, Bundle bundle) {
t.f(view, ViewHierarchyConstants.VIEW_KEY);
super.onViewCreated(view, bundle);
TextView textView = (TextView) view.findViewById(R.id.a2i);
TextView textView2 = (TextView) view.findViewById(R.id.a5k);
textView.setOnClickListener(new ViewOnClickListenerC0207a());
textView2.setOnClickListener(new b());
TrackerManager trackerManager = TrackerManager.a;
Context requireContext = requireContext();
t.e(requireContext, "requireContext()");
TrackerManager.i(trackerManager, requireContext, "rate_dialog_open", null, 4, null);
SensorsDataAutoTrackHelper.onFragmentViewCreated(this, view, bundle);
}
@Override
@SensorsDataInstrumented
public void setUserVisibleHint(boolean z) {
super.setUserVisibleHint(z);
SensorsDataAutoTrackHelper.trackFragmentSetUserVisibleHint(this, z);
}
}