Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97

以下内容为反编译后的 o1.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 o1 extends RelativeLayout {
    @NonNull
    public final RelativeLayout a;
    @NonNull
    public final ImageView f4463b;
    @NonNull
    public final ImageView c;
    @NonNull
    public final p9 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) {
                o9.a("FooterView$GoToMyTargetClickListener: Error - " + th.getMessage());
            }
        }
    }

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

    public void a() {
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -2);
        layoutParams.addRule(12, -1);
        this.a.setLayoutParams(layoutParams);
        this.f4463b.setImageBitmap(q3.a(getContext()));
        this.a.addView(this.f4463b);
        this.a.addView(this.c);
        addView(this.a);
    }

    public void a(int i, boolean z) {
        int b2;
        int b3;
        int b4;
        int b5;
        int b6;
        int b7;
        int b8;
        int i2 = i / 3;
        if (this.e) {
            i2 = i / 5;
        }
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, i2);
        int b9 = this.d.b(24);
        p9 p9Var = this.d;
        if (z) {
            b2 = p9Var.b(4);
            b3 = this.d.b(24);
            b4 = this.d.b(8);
        } else {
            b2 = p9Var.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, i2);
        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.f4463b.setScaleType(ImageView.ScaleType.FIT_END);
        this.f4463b.setLayoutParams(layoutParams2);
        this.f4463b.setOnClickListener(this.f);
    }
}