Proxy Master v3.4.9版本的 MD5 值为:14d0aa2468d13530c8f6e96bcc114bf5

以下内容为反编译后的 s1.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;
@SuppressLint({"ViewConstructor"})
public class s1 extends RelativeLayout {
    public final RelativeLayout f10323a;
    public final ImageView f10324b;
    public final ImageView f10325c;
    public final ca f10326d;
    public final boolean f10327e;
    public final View.OnClickListener f10328f;

    public static class a implements View.OnClickListener {
        public final Context f10329a;

        public a(Context context) {
            this.f10329a = context;
        }

        @Override
        public void onClick(View view) {
            try {
                Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("https://target.my.com/"));
                if (!(this.f10329a instanceof Activity)) {
                    intent.addFlags(268435456);
                }
                this.f10329a.startActivity(intent);
            } catch (Throwable th) {
                a.a.y(th, new StringBuilder("FooterView$GoToMyTargetClickListener: Error - "));
            }
        }
    }

    public s1(Context context, ca caVar, boolean z6) {
        super(context);
        this.f10323a = new RelativeLayout(context);
        ImageView imageView = new ImageView(context);
        this.f10324b = imageView;
        ca.b(imageView, "logo_image");
        ImageView imageView2 = new ImageView(context);
        this.f10325c = imageView2;
        ca.b(imageView2, "store_image");
        this.f10326d = caVar;
        this.f10327e = z6;
        this.f10328f = new a(context);
    }

    public void a() {
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -2);
        layoutParams.addRule(12, -1);
        this.f10323a.setLayoutParams(layoutParams);
        this.f10324b.setImageBitmap(b4.a(getContext()));
        this.f10323a.addView(this.f10324b);
        this.f10323a.addView(this.f10325c);
        addView(this.f10323a);
    }

    public void a(int i10, boolean z6) {
        int b6;
        int b10;
        int b11;
        int b12;
        int b13;
        int b14;
        int b15;
        int i11 = i10 / 3;
        if (this.f10327e) {
            i11 = i10 / 5;
        }
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, i11);
        int b16 = this.f10326d.b(24);
        ca caVar = this.f10326d;
        if (z6) {
            b6 = caVar.b(4);
            b10 = this.f10326d.b(24);
            b11 = this.f10326d.b(8);
        } else {
            b6 = caVar.b(16);
            b10 = this.f10326d.b(24);
            b11 = this.f10326d.b(16);
        }
        layoutParams.setMargins(b16, b6, b10, b11);
        layoutParams.addRule(15, -1);
        layoutParams.addRule(20);
        this.f10325c.setScaleType(ImageView.ScaleType.FIT_START);
        this.f10325c.setLayoutParams(layoutParams);
        RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(-2, i11);
        if (z6) {
            b12 = this.f10326d.b(8);
            b13 = this.f10326d.b(4);
            b14 = this.f10326d.b(8);
            b15 = this.f10326d.b(8);
        } else {
            b12 = this.f10326d.b(24);
            b13 = this.f10326d.b(16);
            b14 = this.f10326d.b(24);
            b15 = this.f10326d.b(16);
        }
        layoutParams2.setMargins(b12, b13, b14, b15);
        layoutParams2.addRule(15, -1);
        layoutParams2.addRule(21);
        this.f10324b.setScaleType(ImageView.ScaleType.FIT_END);
        this.f10324b.setLayoutParams(layoutParams2);
        this.f10324b.setOnClickListener(this.f10328f);
    }
}