正在查看: Mint v5.7.3 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package v7;
import android.app.Activity;
import android.app.Dialog;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RatingBar;
import android.widget.TextView;
import com.htmedia.mint.AppController;
import com.htmedia.mint.utils.f0;
import com.htmedia.mint.utils.n;
import f6.l;
public class g extends Dialog implements View.OnClickListener {
public Activity a;
public Button b;
public Button c;
RatingBar d;
RatingBar e;
RatingBar f;
LinearLayout g;
LinearLayout h;
LinearLayout i;
LinearLayout j;
View o;
String p;
private TextView q;
private TextView r;
private TextView s;
private TextView t;
public g(Activity activity) {
super(activity);
this.p = "AppRatingBar";
this.a = activity;
}
public void a(boolean z) {
if (!z) {
this.g.setBackgroundColor(getContext().getResources().getColor(2131101002));
this.h.setBackgroundColor(getContext().getResources().getColor(2131101002));
this.i.setBackgroundColor(getContext().getResources().getColor(2131101002));
this.r.setTextColor(getContext().getResources().getColor(2131099901));
this.s.setTextColor(getContext().getResources().getColor(2131099901));
this.t.setTextColor(getContext().getResources().getColor(2131099901));
this.b.setBackground(getContext().getResources().getDrawable(2131231653));
return;
}
this.g.setBackgroundColor(getContext().getResources().getColor(2131100598));
this.h.setBackgroundColor(getContext().getResources().getColor(2131100598));
this.i.setBackgroundColor(getContext().getResources().getColor(2131100598));
this.q.setTextColor(getContext().getResources().getColor(2131101002));
this.r.setTextColor(getContext().getResources().getColor(2131101002));
this.s.setTextColor(getContext().getResources().getColor(2131101002));
this.t.setTextColor(getContext().getResources().getColor(2131101002));
this.b.setBackground(getContext().getResources().getDrawable(2131231654));
}
@Override
public void onClick(View view) {
int id2 = view.getId();
if (id2 == 2131428244) {
if (this.c.getText().toString().equalsIgnoreCase("rate now")) {
n.k0(this.a, this.p, "Later", "Play store Rating");
} else {
n.k0(this.a, this.p, "Later", "App rating");
}
dismiss();
this.a.X3();
return;
}
if (id2 != 2131430714) {
return;
}
if (this.c.getText().toString().equalsIgnoreCase("Submit")) {
n.k0(this.a, this.p, this.d.getRating() + " star", "App rating");
if (((int) this.d.getRating()) > 4) {
this.g.setVisibility(8);
this.h.setVisibility(0);
this.c.setText("Rate Now");
this.e.setRating((int) this.d.getRating());
} else {
this.g.setVisibility(8);
this.i.setVisibility(0);
this.f.setRating((int) this.d.getRating());
this.c.setText("Yes");
this.b.setText("No");
l.m(this.a, "is_rating_alert_submitted", Boolean.TRUE);
}
} else if (this.c.getText().toString().equalsIgnoreCase("Yes")) {
Activity activity = this.a;
f0.j3(activity, "[email protected]", activity.getString(2131951996), this.a.getString(2131951995) + f0.u1());
} else {
n.k0(this.a, this.p, "Rate Now", "Play store Rating");
String packageName = this.a.getPackageName();
try {
this.a.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + packageName)));
} catch (ActivityNotFoundException unused) {
this.a.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + packageName)));
}
l.m(this.a, "is_rating_alert_submitted", Boolean.TRUE);
dismiss();
}
this.a.X3();
}
@Override
protected void onCreate(Bundle bundle) {
requestWindowFeature(1);
super.onCreate(bundle);
getWindow().setBackgroundDrawable(new ColorDrawable(0));
setContentView(2131624201);
setCanceledOnTouchOutside(false);
this.d = (RatingBar) findViewById(2131430228);
this.e = (RatingBar) findViewById(2131430232);
this.f = (RatingBar) findViewById(2131430233);
this.g = (LinearLayout) findViewById(2131429741);
this.h = (LinearLayout) findViewById(2131427476);
this.i = (LinearLayout) findViewById(2131430874);
this.j = (LinearLayout) findViewById(2131427771);
this.q = (TextView) findViewById(2131431062);
this.r = (TextView) findViewById(2131431063);
this.s = (TextView) findViewById(2131431064);
this.t = (TextView) findViewById(2131431065);
this.b = (Button) findViewById(2131428244);
this.c = (Button) findViewById(2131430714);
this.o = findViewById(2131430551);
a(AppController.j().E());
this.g.setVisibility(0);
this.h.setVisibility(8);
this.i.setVisibility(8);
this.d.setRating(5.0f);
this.b.setOnClickListener(this);
this.c.setOnClickListener(this);
n.k0(this.a, this.p, "View", "View rating");
}
}