package ῲ.ῲ.㴹;

import android.content.Context;
import android.graphics.Rect;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.TextView;
import androidx.appcompat.R$id;
import androidx.appcompat.R$layout;
import androidx.appcompat.R$style;

/* renamed from: ῲ.ῲ.㴹.ጒ  reason: contains not printable characters */
/* compiled from: TooltipPopup */
public class C2011 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public final TextView f6828;

    /* renamed from: ඓ  reason: contains not printable characters */
    public final Rect f6829 = new Rect();

    /* renamed from: ῲ  reason: contains not printable characters */
    public final View f6830;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public final int[] f6831 = new int[2];

    /* renamed from: K  reason: contains not printable characters */
    public final Context f6832;

    /* renamed from: 㴹  reason: contains not printable characters */
    public final int[] f6833 = new int[2];

    /* renamed from: 㸾  reason: contains not printable characters */
    public final WindowManager.LayoutParams f6834 = new WindowManager.LayoutParams();

    public C2011(Context context) {
        this.f6832 = context;
        this.f6830 = LayoutInflater.from(this.f6832).inflate(R$layout.abc_tooltip, (ViewGroup) null);
        this.f6828 = (TextView) this.f6830.findViewById(R$id.message);
        this.f6834.setTitle(C2011.class.getSimpleName());
        this.f6834.packageName = this.f6832.getPackageName();
        WindowManager.LayoutParams layoutParams = this.f6834;
        layoutParams.type = 1002;
        layoutParams.width = -2;
        layoutParams.height = -2;
        layoutParams.format = -3;
        layoutParams.windowAnimations = R$style.Animation_AppCompat_Tooltip;
        layoutParams.flags = 24;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public boolean m5200() {
        return this.f6830.getParent() != null;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m5201() {
        if (this.f6830.getParent() != null) {
            ((WindowManager) this.f6832.getSystemService("window")).removeView(this.f6830);
        }
    }
}
