Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 l1.java 源代码,内容仅作参考
package com.my.target;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import androidx.annotation.NonNull;
@SuppressLint({"ViewConstructor"})
public class l1 extends RelativeLayout {
@NonNull
public final RelativeLayout f50906a;
@NonNull
public final ImageView f50907b;
@NonNull
public final ImageView f50908c;
@NonNull
public final d9 f50909d;
public final boolean f50910e;
@NonNull
public final View.OnClickListener f50911f;
public static class b implements View.OnClickListener {
@NonNull
public final Context f50912a;
public b(@NonNull Context context) {
this.f50912a = context;
}
@Override
public void onClick(View view) {
try {
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("https://target.my.com/"));
if (!(this.f50912a instanceof Activity)) {
intent.addFlags(268435456);
}
this.f50912a.startActivity(intent);
} catch (Throwable th2) {
c9.a("FooterView$GoToMyTargetClickListener: Error - " + th2.getMessage());
}
}
}
public l1(@NonNull Context context, @NonNull d9 d9Var, boolean z11) {
super(context);
this.f50906a = new RelativeLayout(context);
ImageView imageView = new ImageView(context);
this.f50907b = imageView;
d9.b(imageView, "logo_image");
ImageView imageView2 = new ImageView(context);
this.f50908c = imageView2;
d9.b(imageView2, "store_image");
this.f50909d = d9Var;
this.f50910e = z11;
this.f50911f = new b(context);
}
public void a() {
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -2);
layoutParams.addRule(12, -1);
this.f50906a.setLayoutParams(layoutParams);
this.f50907b.setImageBitmap(l3.a(getContext()));
this.f50906a.addView(this.f50907b);
this.f50906a.addView(this.f50908c);
addView(this.f50906a);
}
public void a(int i11, boolean z11) {
int b11;
int b12;
int b13;
int b14;
int b15;
int b16;
int b17;
int i12 = i11 / 3;
if (this.f50910e) {
i12 = i11 / 5;
}
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, i12);
int b18 = this.f50909d.b(24);
d9 d9Var = this.f50909d;
if (z11) {
b11 = d9Var.b(4);
b12 = this.f50909d.b(24);
b13 = this.f50909d.b(8);
} else {
b11 = d9Var.b(16);
b12 = this.f50909d.b(24);
b13 = this.f50909d.b(16);
}
layoutParams.setMargins(b18, b11, b12, b13);
layoutParams.addRule(15, -1);
layoutParams.addRule(20);
this.f50908c.setScaleType(ImageView.ScaleType.FIT_START);
this.f50908c.setLayoutParams(layoutParams);
RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(-2, i12);
if (z11) {
b14 = this.f50909d.b(8);
b15 = this.f50909d.b(4);
b16 = this.f50909d.b(8);
b17 = this.f50909d.b(8);
} else {
b14 = this.f50909d.b(24);
b15 = this.f50909d.b(16);
b16 = this.f50909d.b(24);
b17 = this.f50909d.b(16);
}
layoutParams2.setMargins(b14, b15, b16, b17);
layoutParams2.addRule(15, -1);
layoutParams2.addRule(21);
this.f50907b.setScaleType(ImageView.ScaleType.FIT_END);
this.f50907b.setLayoutParams(layoutParams2);
this.f50907b.setOnClickListener(this.f50911f);
}
}