Call Recorder v6.34.2版本的 MD5 值为:298659ce317c966b10d9947b76831521
以下内容为反编译后的 b.java 源代码,内容仅作参考
package i2;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.appstar.callrecorder.R;
public class b extends f {
protected String f23717m;
protected String f23718n;
protected String f23719p;
private Intent f23720q;
private Integer f23721r;
private int f23722s;
private String f23723t;
private String f23724u;
private int f23725v;
class a implements View.OnClickListener {
final ViewGroup f23726a;
a(ViewGroup viewGroup) {
this.f23726a = viewGroup;
}
@Override
public void onClick(View view) {
ViewGroup viewGroup = this.f23726a;
viewGroup.setVisibility(viewGroup.getVisibility() == 0 ? 8 : 0);
}
}
class View$OnClickListenerC0166b implements View.OnClickListener {
View$OnClickListenerC0166b() {
}
@Override
public void onClick(View view) {
b bVar = b.this;
com.appstar.callrecordercore.k.p1(bVar.f23750b, bVar.f23720q, "ExpandableMessage");
}
}
class c implements View.OnClickListener {
c() {
}
@Override
public void onClick(View view) {
com.appstar.callrecordercore.k.p1(b.this.f23750b, new Intent("android.intent.action.VIEW", Uri.parse("https://callrecorder.appliqato.com/call-log-permissions-change")), "ExpandableMessage");
}
}
class d implements View.OnClickListener {
d() {
}
@Override
public void onClick(View view) {
b.this.r();
View.OnClickListener onClickListener = b.this.f23754h;
if (onClickListener != null) {
onClickListener.onClick(view);
}
}
}
public b(Activity activity, int i9, String str, String str2, String str3) {
super(i9);
this.f23721r = null;
this.f23725v = 5;
this.f23749a = activity;
this.f23750b = activity;
this.f23717m = str;
this.f23718n = str2;
this.f23719p = str3;
}
private void m() {
String str = this.f23724u;
if (str == null || str.isEmpty()) {
return;
}
int Q = com.appstar.callrecordercore.k.Q(this.f23750b, this.f23724u, 1);
if (Q >= this.f23725v) {
r();
} else {
com.appstar.callrecordercore.k.C1(this.f23750b, this.f23724u, Q + 1);
}
}
public void r() {
String str = this.f23723t;
if (str != null && !str.isEmpty()) {
com.appstar.callrecordercore.k.v1(this.f23750b, this.f23723t, false);
}
String str2 = this.f23724u;
if (str2 == null || str2.isEmpty()) {
return;
}
com.appstar.callrecordercore.k.C1(this.f23750b, this.f23724u, 0);
}
@Override
public View d(ViewGroup viewGroup) {
View inflate = this.f23749a.getLayoutInflater().inflate(R.layout.welcome_header, viewGroup);
this.f23750b.getResources();
m();
inflate.setBackgroundResource(b());
((TextView) inflate.findViewById(R.id.welcomHeaderText)).setText(this.f23717m);
TextView textView = (TextView) inflate.findViewById(R.id.welcomHeaderReadMore);
TextView textView2 = (TextView) inflate.findViewById(R.id.welcomHeaderExpLink);
TextView textView3 = (TextView) inflate.findViewById(R.id.welcomHeaderExpandText);
ViewGroup viewGroup2 = (ViewGroup) inflate.findViewById(R.id.welcomHeaderExp);
TextView textView4 = (TextView) inflate.findViewById(R.id.html_link);
String str = this.f23718n;
if (str != null) {
textView3.setText(str);
textView.setText(this.f23719p);
textView.setPaintFlags(8);
textView.setOnClickListener(new a(viewGroup2));
viewGroup2.setVisibility(8);
if (this.f23720q != null) {
textView2.setPaintFlags(8);
textView2.setText(this.f23722s);
textView2.setVisibility(0);
textView2.setOnClickListener(new View$OnClickListenerC0166b());
textView4.setVisibility(8);
} else if (this.f23721r != null) {
if (textView4 != null) {
textView4.setOnClickListener(new c());
}
textView2.setVisibility(8);
} else {
textView2.setVisibility(8);
textView4.setVisibility(8);
}
}
((ImageView) inflate.findViewById(R.id.imageMessage)).setVisibility(8);
((RelativeLayout) inflate.findViewById(R.id.welcomRelativeLayout)).setPadding(10, 10, 0, 10);
((ImageButton) inflate.findViewById(R.id.welcomHeaderButton)).setOnClickListener(new d());
return inflate;
}
public boolean n() {
int Q = com.appstar.callrecordercore.k.Q(this.f23750b, this.f23724u, 1);
return Q != 0 && Q <= this.f23725v;
}
public void o(int i9) {
this.f23721r = Integer.valueOf(i9);
}
public void p(int i9, Intent intent) {
this.f23720q = intent;
this.f23722s = i9;
}
public void q(String str) {
if (str != null) {
this.f23723t = str;
this.f23724u = String.format("%s-counter", str);
}
}
}