360 Wi-Fi v1.0.1版本的 MD5 值为:53dc85b63eb655b13344ce30ddaccae2

以下内容为反编译后的 s1.java 源代码,内容仅作参考


package com.my.target;

import IILiIILllIilI.lliIllIlLlL;
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;
import androidx.datastore.preferences.protobuf.llLiiILlllII;
@SuppressLint({"ViewConstructor"})
public class s1 extends RelativeLayout {
    @NonNull
    public final RelativeLayout a;
    @NonNull
    public final ImageView b;
    @NonNull
    public final ImageView c;
    @NonNull
    public final da d;
    public final boolean e;
    @NonNull
    public final View.OnClickListener f;

    public static class b implements View.OnClickListener {
        @NonNull
        public final Context a;

        public b(@NonNull Context context) {
            this.a = context;
        }

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

    public s1(@NonNull Context context, @NonNull da daVar, boolean z) {
        super(context);
        this.a = new RelativeLayout(context);
        ImageView imageView = new ImageView(context);
        this.b = imageView;
        da.b(imageView, "logo_image");
        ImageView imageView2 = new ImageView(context);
        this.c = imageView2;
        da.b(imageView2, "store_image");
        this.d = daVar;
        this.e = z;
        this.f = new b(context);
    }

    public void a() {
        this.a.setLayoutParams(llLiiILlllII.iiilLllli(-1, -2, 12, -1));
        this.b.setImageBitmap(b4.a(getContext()));
        this.a.addView(this.b);
        this.a.addView(this.c);
        addView(this.a);
    }

    public void a(int i2, boolean z) {
        int b2;
        int b3;
        int b4;
        int b5;
        int b6;
        int b7;
        int b8;
        int i3 = i2 / 3;
        if (this.e) {
            i3 = i2 / 5;
        }
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, i3);
        int b9 = this.d.b(24);
        da daVar = this.d;
        if (z) {
            b2 = daVar.b(4);
            b3 = this.d.b(24);
            b4 = this.d.b(8);
        } else {
            b2 = daVar.b(16);
            b3 = this.d.b(24);
            b4 = this.d.b(16);
        }
        layoutParams.setMargins(b9, b2, b3, b4);
        layoutParams.addRule(15, -1);
        layoutParams.addRule(20);
        this.c.setScaleType(ImageView.ScaleType.FIT_START);
        this.c.setLayoutParams(layoutParams);
        RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(-2, i3);
        if (z) {
            b5 = this.d.b(8);
            b6 = this.d.b(4);
            b7 = this.d.b(8);
            b8 = this.d.b(8);
        } else {
            b5 = this.d.b(24);
            b6 = this.d.b(16);
            b7 = this.d.b(24);
            b8 = this.d.b(16);
        }
        layoutParams2.setMargins(b5, b6, b7, b8);
        layoutParams2.addRule(15, -1);
        layoutParams2.addRule(21);
        this.b.setScaleType(ImageView.ScaleType.FIT_END);
        this.b.setLayoutParams(layoutParams2);
        this.b.setOnClickListener(this.f);
    }
}