Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9

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


package myobfuscated.gh2;

import android.app.Activity;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.StateListDrawable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.PopupWindow;
import android.widget.VideoView;
import com.picsart.studio.R;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
public final class d extends PopupWindow {
    public static final int d = 0;
    @NotNull
    public final Activity a;
    @NotNull
    public final View b;
    public final boolean c;

    public d(@NotNull myobfuscated.jl1.d activity, @NotNull Button anchorView, boolean z) {
        super(r0, -1, -2, true);
        Intrinsics.checkNotNullParameter(activity, "activity");
        Intrinsics.checkNotNullParameter(anchorView, "anchorView");
        View inflate = activity.getLayoutInflater().inflate(R.layout.smudge_tool_tooltip, (ViewGroup) null);
        View findViewById = inflate.findViewById(R.id.smudge_tool_tooltip_content);
        int color = myobfuscated.b3.a.getColor(inflate.getContext(), R.color.light_background);
        GradientDrawable gradientDrawable = new GradientDrawable();
        StateListDrawable stateListDrawable = new StateListDrawable();
        gradientDrawable.setCornerRadius(myobfuscated.yn1.c.a(4.0f));
        gradientDrawable.setColor(color);
        stateListDrawable.addState(new int[0], gradientDrawable);
        if (findViewById != null) {
            findViewById.setBackground(stateListDrawable);
        }
        if (findViewById != null) {
            findViewById.setClipToOutline(true);
        }
        if (z) {
            ImageView imageView = (ImageView) inflate.findViewById(R.id.right_arrow);
            imageView.setImageDrawable(new myobfuscated.uz1.a(myobfuscated.b3.a.getColor(activity, R.color.light_background), 0, 8388611, myobfuscated.yn1.c.a(5.0f)));
            imageView.setLayerType(1, null);
            inflate.findViewById(R.id.right_arrow_container).bringToFront();
        } else {
            ImageView imageView2 = (ImageView) inflate.findViewById(R.id.bottom_arrow);
            imageView2.setImageDrawable(new myobfuscated.uz1.a(myobfuscated.b3.a.getColor(activity, R.color.light_background), 0, 48, myobfuscated.yn1.c.a(5.0f)));
            imageView2.setLayerType(1, null);
            imageView2.bringToFront();
        }
        this.a = activity;
        this.b = anchorView;
        this.c = z;
        getContentView().findViewById(R.id.tooltip_action_button).setOnClickListener(new myobfuscated.t62.d(this, 15));
        getContentView().findViewById(R.id.smudge_tool_tooltip_root).setOnClickListener(new myobfuscated.vc2.a(this, 8));
    }

    public final void a() {
        VideoView videoView = (VideoView) getContentView().findViewById(R.id.video_view);
        videoView.setVideoPath("https://cdn140.picsart.com/36880198568941616160.mp4");
        videoView.start();
        videoView.setOnPreparedListener(new a(this, 1));
        View rootView = this.a.getWindow().getDecorView().getRootView();
        boolean z = this.c;
        View view = this.b;
        if (z) {
            int[] iArr = new int[2];
            view.getLocationInWindow(iArr);
            getContentView().findViewById(R.id.right_arrow_container).setTranslationY((view.getHeight() / 2) + (iArr[1] - (rootView.getHeight() / 2)));
            showAtLocation(rootView, 8388629, 0, 0);
            return;
        }
        int[] iArr2 = new int[2];
        view.getLocationInWindow(iArr2);
        getContentView().findViewById(R.id.bottom_arrow).setTranslationX((view.getWidth() / 2) + (iArr2[0] - (rootView.getWidth() / 2)));
        showAtLocation(rootView, 81, 0, 0);
    }
}