package ඓ.㸾.K;

import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Application;
import android.app.Dialog;
import android.app.DialogFragment;
import android.net.Uri;
import android.os.Build;
import android.provider.Settings;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.FrameLayout;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import com.facebook.internal.WebDialog;
import com.google.android.material.progressindicator.BaseProgressIndicator;
import com.gyf.immersionbar.R$id;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import ඓ.㸾.K.C1370;
import ῲ.Ԕ.K.DialogInterface$OnCancelListenerC1529;
import ῲ.ᨨ.ʬ.C1718;
import ῲ.ᨨ.㳳.C1841;

@TargetApi(19)
/* renamed from: ඓ.㸾.K.㿎  reason: contains not printable characters */
/* compiled from: ImmersionBar */
public final class C1387 implements AbstractRunnableC1377 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public Fragment f5306;

    /* renamed from: Ԕ  reason: contains not printable characters */
    public C1380 f5307;

    /* renamed from: Ԛ  reason: contains not printable characters */
    public boolean f5308;

    /* renamed from: ؿ  reason: contains not printable characters */
    public int f5309 = 0;

    /* renamed from: ݜ  reason: contains not printable characters */
    public int f5310;

    /* renamed from: ඓ  reason: contains not printable characters */
    public Dialog f5311;

    /* renamed from: ᑓ  reason: contains not printable characters */
    public int f5312;

    /* renamed from: ᓆ  reason: contains not printable characters */
    public int f5313;

    /* renamed from: ᓣ  reason: contains not printable characters */
    public int f5314 = 0;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public boolean f5315 = false;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public C1387 f5316;

    /* renamed from: ῲ  reason: contains not printable characters */
    public Activity f5317;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public ViewGroup f5318;

    /* renamed from: ゎ  reason: contains not printable characters */
    public int f5319;

    /* renamed from: 㑃  reason: contains not printable characters */
    public boolean f5320 = false;

    /* renamed from: 㗗  reason: contains not printable characters */
    public int f5321 = 0;

    /* renamed from: 㗽  reason: contains not printable characters */
    public ViewTreeObserver$OnGlobalLayoutListenerC1385 f5322 = null;

    /* renamed from: 㳳  reason: contains not printable characters */
    public boolean f5323 = false;

    /* renamed from: 㴪  reason: contains not printable characters */
    public int f5324;

    /* renamed from: 㴹  reason: contains not printable characters */
    public Window f5325;

    /* renamed from: 㶋  reason: contains not printable characters */
    public boolean f5326;

    /* renamed from: 㸾  reason: contains not printable characters */
    public android.app.Fragment f5327;

    /* renamed from: 㿎  reason: contains not printable characters */
    public ViewGroup f5328;

    /* renamed from: 䀟  reason: contains not printable characters */
    public boolean f5329;

    /* renamed from: 䁗  reason: contains not printable characters */
    public C1378 f5330;

    public C1387(Activity activity) {
        new HashMap();
        this.f5310 = 0;
        this.f5329 = false;
        this.f5308 = false;
        this.f5326 = false;
        this.f5313 = 0;
        this.f5324 = 0;
        this.f5312 = 0;
        this.f5319 = 0;
        this.f5317 = activity;
        m3594(this.f5317.getWindow());
    }

    public void run() {
        m3587();
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public void m3586() {
        int i;
        int i2;
        int i3 = Build.VERSION.SDK_INT;
        C1378 r0 = this.f5330;
        if (r0.f5241) {
            if (r0.f5242 && (i2 = r0.f5258) != 0) {
                m3588(i2 > -4539718, this.f5330.f5244);
            }
            C1378 r02 = this.f5330;
            if (r02.f5264 && (i = r02.f5240) != 0) {
                m3591(i > -4539718, this.f5330.f5254);
            }
            int i4 = Build.VERSION.SDK_INT;
            m3590();
            C1387 r03 = this.f5316;
            if (r03 != null) {
                if (this.f5323) {
                    r03.f5330 = this.f5330;
                }
                if (this.f5320) {
                    C1387 r04 = this.f5316;
                    if (r04.f5326) {
                        r04.f5330.f5256 = false;
                    }
                }
            }
            m3596();
            m3589();
            int i5 = Build.VERSION.SDK_INT;
            if (this.f5323) {
                C1387 r05 = this.f5316;
                if (r05 != null) {
                    if (r05.f5330.f5256) {
                        if (r05.f5322 == null) {
                            r05.f5322 = new ViewTreeObserver$OnGlobalLayoutListenerC1385(r05);
                        }
                        C1387 r06 = this.f5316;
                        r06.f5322.m3582(r06.f5330.f5248);
                    } else {
                        ViewTreeObserver$OnGlobalLayoutListenerC1385 r07 = r05.f5322;
                        if (r07 != null) {
                            r07.m3580();
                        }
                    }
                }
            } else if (this.f5330.f5256) {
                if (this.f5322 == null) {
                    this.f5322 = new ViewTreeObserver$OnGlobalLayoutListenerC1385(this);
                }
                this.f5322.m3582(this.f5330.f5248);
            } else {
                ViewTreeObserver$OnGlobalLayoutListenerC1385 r08 = this.f5322;
                if (r08 != null) {
                    r08.m3580();
                }
            }
            if (this.f5330.f5243.size() != 0) {
                for (Map.Entry<View, Map<Integer, Integer>> entry : this.f5330.f5243.entrySet()) {
                    View key = entry.getKey();
                    Integer valueOf = Integer.valueOf(this.f5330.f5258);
                    Integer valueOf2 = Integer.valueOf(this.f5330.f5245);
                    for (Map.Entry<Integer, Integer> entry2 : entry.getValue().entrySet()) {
                        Integer key2 = entry2.getKey();
                        valueOf2 = entry2.getValue();
                        valueOf = key2;
                    }
                    if (key != null) {
                        if (Math.abs(this.f5330.f5271 - 0.0f) == 0.0f) {
                            key.setBackgroundColor(C1718.m4412(valueOf.intValue(), valueOf2.intValue(), this.f5330.f5247));
                        } else {
                            key.setBackgroundColor(C1718.m4412(valueOf.intValue(), valueOf2.intValue(), this.f5330.f5271));
                        }
                    }
                }
            }
            this.f5329 = true;
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:28:0x0064  */
    /* JADX WARNING: Removed duplicated region for block: B:31:0x006f  */
    /* renamed from: ඓ  reason: contains not printable characters */
    public final void m3587() {
        Uri uriFor;
        int i;
        int i2;
        m3590();
        if (m3585(this.f5318.findViewById(16908290))) {
            m3593(0, 0, 0, 0);
        } else {
            int i3 = (!this.f5330.f5253 || this.f5310 != 4) ? 0 : this.f5307.f5285;
            if (this.f5330.f5276) {
                i3 = this.f5307.f5285 + this.f5314;
            }
            C1380 k = this.f5307;
            if (k.f5281) {
                C1378 r3 = this.f5330;
                if (r3.f5260 && r3.f5249) {
                    if (r3.f5257) {
                        i2 = 0;
                    } else if (k.m3572()) {
                        i = this.f5307.f5287;
                        i2 = 0;
                        if (!this.f5330.f5268) {
                            if (!this.f5307.m3572()) {
                                i2 = 0;
                            }
                            i = 0;
                        } else if (!this.f5307.m3572()) {
                            i2 = this.f5307.f5282;
                        }
                        m3593(0, i3, i2, i);
                    } else {
                        i2 = this.f5307.f5282;
                    }
                    i = 0;
                    if (!this.f5330.f5268) {
                    }
                    m3593(0, i3, i2, i);
                }
            }
            i2 = 0;
            i = 0;
            m3593(0, i3, i2, i);
        }
        if (!this.f5323 && C1841.m4805()) {
            View findViewById = this.f5318.findViewById(C1386.f5304);
            C1378 r1 = this.f5330;
            if (!r1.f5260 || !r1.f5249) {
                C1370.m3561().m3562(this);
                findViewById.setVisibility(8);
            } else if (findViewById != null) {
                C1370.m3561().m3563(this);
                C1370 r0 = C1370.C1371.f5231;
                r0.f5229 = this.f5317.getApplication();
                int i4 = Build.VERSION.SDK_INT;
                Application application = r0.f5229;
                if (application != null && application.getContentResolver() != null && !r0.f5228.booleanValue() && (uriFor = Settings.System.getUriFor("navigationbar_is_min")) != null) {
                    r0.f5229.getContentResolver().registerContentObserver(uriFor, true, r0);
                    r0.f5228 = true;
                }
            }
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public final void m3589() {
        int i = Build.VERSION.SDK_INT;
        int i2 = 0;
        if (!C1841.m4805()) {
            m3590();
            if (m3585(this.f5318.findViewById(16908290))) {
                m3593(0, 0, 0, 0);
            } else {
                int i3 = (!this.f5330.f5253 || this.f5310 != 4) ? 0 : this.f5307.f5285;
                if (this.f5330.f5276) {
                    i3 = this.f5307.f5285 + this.f5314;
                }
                m3593(0, i3, 0, 0);
            }
        } else if (this.f5330.f5276) {
            this.f5308 = true;
            this.f5328.post(this);
        } else {
            this.f5308 = false;
            m3587();
        }
        int r0 = this.f5330.f5261 ? m3584(this.f5317) : 0;
        int i4 = this.f5310;
        if (i4 == 1) {
            Activity activity = this.f5317;
            View[] viewArr = {this.f5330.f5269};
            int i5 = Build.VERSION.SDK_INT;
            if (activity != null) {
                if (r0 < 0) {
                    r0 = 0;
                }
                int length = viewArr.length;
                while (i2 < length) {
                    View view = viewArr[i2];
                    if (view != null) {
                        Integer num = (Integer) view.getTag(R$id.immersion_fits_layout_overlap);
                        if (num == null) {
                            num = 0;
                        }
                        if (num.intValue() != r0) {
                            view.setTag(R$id.immersion_fits_layout_overlap, Integer.valueOf(r0));
                            ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
                            if (layoutParams == null) {
                                layoutParams = new ViewGroup.LayoutParams(-1, -2);
                            }
                            int i6 = layoutParams.height;
                            if (i6 == -2 || i6 == -1) {
                                view.post(new RunnableC1379(layoutParams, view, r0, num));
                            } else {
                                layoutParams.height = (r0 - num.intValue()) + i6;
                                view.setPadding(view.getPaddingLeft(), (view.getPaddingTop() + r0) - num.intValue(), view.getPaddingRight(), view.getPaddingBottom());
                                view.setLayoutParams(layoutParams);
                            }
                        }
                    }
                    i2++;
                }
            }
        } else if (i4 == 2) {
            Activity activity2 = this.f5317;
            View[] viewArr2 = {this.f5330.f5269};
            int i7 = Build.VERSION.SDK_INT;
            if (activity2 != null) {
                if (r0 < 0) {
                    r0 = 0;
                }
                int length2 = viewArr2.length;
                while (i2 < length2) {
                    View view2 = viewArr2[i2];
                    if (view2 != null) {
                        Integer num2 = (Integer) view2.getTag(R$id.immersion_fits_layout_overlap);
                        if (num2 == null) {
                            num2 = 0;
                        }
                        if (num2.intValue() != r0) {
                            view2.setTag(R$id.immersion_fits_layout_overlap, Integer.valueOf(r0));
                            ViewGroup.LayoutParams layoutParams2 = view2.getLayoutParams();
                            if (layoutParams2 == null) {
                                layoutParams2 = new ViewGroup.MarginLayoutParams(-1, -2);
                            }
                            ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams2;
                            marginLayoutParams.setMargins(marginLayoutParams.leftMargin, (marginLayoutParams.topMargin + r0) - num2.intValue(), marginLayoutParams.rightMargin, marginLayoutParams.bottomMargin);
                            view2.setLayoutParams(marginLayoutParams);
                        }
                    }
                    i2++;
                }
            }
        } else if (i4 == 3) {
            Activity activity3 = this.f5317;
            View[] viewArr3 = {this.f5330.f5251};
            int i8 = Build.VERSION.SDK_INT;
            if (activity3 != null) {
                if (r0 < 0) {
                    r0 = 0;
                }
                for (View view3 : viewArr3) {
                    if (view3 != null) {
                        Integer num3 = (Integer) view3.getTag(R$id.immersion_fits_layout_overlap);
                        if (num3 == null) {
                            num3 = 0;
                        }
                        if (num3.intValue() != r0) {
                            view3.setTag(R$id.immersion_fits_layout_overlap, Integer.valueOf(r0));
                            ViewGroup.LayoutParams layoutParams3 = view3.getLayoutParams();
                            if (layoutParams3 == null) {
                                layoutParams3 = new ViewGroup.LayoutParams(-1, 0);
                            }
                            layoutParams3.height = r0;
                            view3.setLayoutParams(layoutParams3);
                        }
                    }
                }
            }
        }
    }

    /* renamed from: ⁱ  reason: contains not printable characters */
    public final void m3590() {
        this.f5307 = new C1380(this.f5317);
        if (!this.f5329 || this.f5308) {
            this.f5314 = this.f5307.f5283;
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m3595(boolean z) {
        View findViewById = this.f5318.findViewById(C1386.f5304);
        if (findViewById != null) {
            this.f5307 = new C1380(this.f5317);
            int paddingBottom = this.f5328.getPaddingBottom();
            int paddingRight = this.f5328.getPaddingRight();
            if (!z) {
                findViewById.setVisibility(8);
            } else {
                findViewById.setVisibility(0);
                if (!m3585(this.f5318.findViewById(16908290))) {
                    if (this.f5321 == 0) {
                        this.f5321 = this.f5307.f5287;
                    }
                    if (this.f5309 == 0) {
                        this.f5309 = this.f5307.f5282;
                    }
                    if (!this.f5330.f5268) {
                        FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) findViewById.getLayoutParams();
                        if (this.f5307.m3572()) {
                            layoutParams.gravity = 80;
                            paddingBottom = this.f5321;
                            layoutParams.height = paddingBottom;
                            if (this.f5330.f5257) {
                                paddingBottom = 0;
                            }
                            paddingRight = 0;
                        } else {
                            layoutParams.gravity = 8388613;
                            int i = this.f5309;
                            layoutParams.width = i;
                            if (this.f5330.f5257) {
                                i = 0;
                            }
                            paddingRight = i;
                            paddingBottom = 0;
                        }
                        findViewById.setLayoutParams(layoutParams);
                    }
                    m3593(0, this.f5328.getPaddingTop(), paddingRight, paddingBottom);
                }
            }
            paddingBottom = 0;
            paddingRight = 0;
            m3593(0, this.f5328.getPaddingTop(), paddingRight, paddingBottom);
        }
    }

    /* renamed from: 㴹  reason: contains not printable characters */
    public void m3596() {
        int i;
        FrameLayout.LayoutParams layoutParams;
        int i2 = Build.VERSION.SDK_INT;
        boolean z = false;
        if (!C1841.m4805()) {
            if (Build.VERSION.SDK_INT >= 28 && !this.f5329) {
                WindowManager.LayoutParams attributes = this.f5325.getAttributes();
                attributes.layoutInDisplayCutoutMode = 1;
                this.f5325.setAttributes(attributes);
            }
            if (!this.f5329) {
                this.f5330.f5272 = this.f5325.getNavigationBarColor();
            }
            i = WebDialog.MAX_PADDING_SCREEN_HEIGHT;
            C1378 r6 = this.f5330;
            if (r6.f5257 && r6.f5260) {
                i = 1792;
            }
            this.f5325.clearFlags(67108864);
            if (this.f5307.f5281) {
                this.f5325.clearFlags(134217728);
            }
            this.f5325.addFlags(Integer.MIN_VALUE);
            C1378 r2 = this.f5330;
            if (r2.f5265) {
                this.f5325.setStatusBarColor(C1718.m4412(r2.f5258, r2.f5245, r2.f5247));
            } else {
                this.f5325.setStatusBarColor(C1718.m4412(r2.f5258, 0, r2.f5247));
            }
            C1378 r22 = this.f5330;
            if (r22.f5260) {
                this.f5325.setNavigationBarColor(C1718.m4412(r22.f5240, r22.f5274, r22.f5259));
            } else {
                this.f5325.setNavigationBarColor(r22.f5272);
            }
            if (Build.VERSION.SDK_INT >= 23 && this.f5330.f5263) {
                i |= 8192;
            }
            if (Build.VERSION.SDK_INT >= 26 && this.f5330.f5275) {
                i |= 16;
            }
        } else {
            this.f5325.addFlags(67108864);
            View findViewById = this.f5318.findViewById(C1386.f5305);
            if (findViewById == null) {
                findViewById = new View(this.f5317);
                FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(-1, this.f5307.f5285);
                layoutParams2.gravity = 48;
                findViewById.setLayoutParams(layoutParams2);
                findViewById.setVisibility(0);
                findViewById.setId(C1386.f5305);
                this.f5318.addView(findViewById);
            }
            C1378 r62 = this.f5330;
            if (r62.f5265) {
                findViewById.setBackgroundColor(C1718.m4412(r62.f5258, r62.f5245, r62.f5247));
            } else {
                findViewById.setBackgroundColor(C1718.m4412(r62.f5258, 0, r62.f5247));
            }
            if (this.f5307.f5281 || C1841.m4805()) {
                C1378 r0 = this.f5330;
                if (!r0.f5260 || !r0.f5249) {
                    this.f5325.clearFlags(134217728);
                } else {
                    this.f5325.addFlags(134217728);
                }
                if (this.f5321 == 0) {
                    this.f5321 = this.f5307.f5287;
                }
                if (this.f5309 == 0) {
                    this.f5309 = this.f5307.f5282;
                }
                View findViewById2 = this.f5318.findViewById(C1386.f5304);
                if (findViewById2 == null) {
                    findViewById2 = new View(this.f5317);
                    findViewById2.setId(C1386.f5304);
                    this.f5318.addView(findViewById2);
                }
                if (this.f5307.m3572()) {
                    layoutParams = new FrameLayout.LayoutParams(-1, this.f5307.f5287);
                    layoutParams.gravity = 80;
                } else {
                    layoutParams = new FrameLayout.LayoutParams(this.f5307.f5282, -1);
                    layoutParams.gravity = 8388613;
                }
                findViewById2.setLayoutParams(layoutParams);
                C1378 r23 = this.f5330;
                findViewById2.setBackgroundColor(C1718.m4412(r23.f5240, r23.f5274, r23.f5259));
                C1378 r24 = this.f5330;
                if (!r24.f5260 || !r24.f5249 || r24.f5268) {
                    findViewById2.setVisibility(8);
                } else {
                    findViewById2.setVisibility(0);
                }
            }
            i = 256;
        }
        int i3 = Build.VERSION.SDK_INT;
        int ordinal = this.f5330.f5255.ordinal();
        if (ordinal == 0) {
            i |= 1028;
        } else if (ordinal == 1) {
            i |= 514;
        } else if (ordinal == 2) {
            i |= 518;
        } else if (ordinal == 3) {
            i |= 0;
        }
        this.f5318.setSystemUiVisibility(i | RecyclerView.AbstractC0269.FLAG_APPEARED_IN_PRE_LAYOUT);
        if (C1841.m4806()) {
            C1373.m3568(this.f5325, "EXTRA_FLAG_STATUS_BAR_DARK_MODE", this.f5330.f5263);
            C1378 r02 = this.f5330;
            if (r02.f5260) {
                C1373.m3568(this.f5325, "EXTRA_FLAG_NAVIGATION_BAR_DARK_MODE", r02.f5275);
            }
        }
        if (C1841.m4813()) {
            C1378 r03 = this.f5330;
            int i4 = r03.f5262;
            if (i4 != 0) {
                Activity activity = this.f5317;
                Method method = C1373.f5234;
                if (method != null) {
                    try {
                        method.invoke(activity, Integer.valueOf(i4));
                    } catch (IllegalAccessException e) {
                        e.printStackTrace();
                    } catch (InvocationTargetException e2) {
                        e2.printStackTrace();
                    }
                } else {
                    int i5 = ((65280 & i4) >> 8) * 75;
                    if (((((i4 & BaseProgressIndicator.MAX_ALPHA) * 15) + (i5 + (((16711680 & i4) >> 16) * 38))) >> 7) < 50) {
                        z = true;
                    }
                    if (C1373.f5232 != null) {
                        C1373.m3565(activity, z, z);
                        Window window = activity.getWindow();
                        try {
                            C1373.m3567(window, i4);
                            if (Build.VERSION.SDK_INT > 22) {
                                C1373.m3566(window.getDecorView(), true);
                            }
                        } catch (Exception e3) {
                            e3.printStackTrace();
                        }
                    } else {
                        C1373.m3564(activity, z);
                    }
                }
            } else {
                C1373.m3564(this.f5317, r03.f5263);
            }
        }
        if (this.f5330.f5246 != null) {
            C1374.m3569().m3570(this.f5317.getApplication());
        }
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public void m3597() {
        if (!C1841.m4805()) {
            int i = Build.VERSION.SDK_INT;
            m3589();
        } else if (!this.f5329 || this.f5323 || !this.f5330.f5249) {
            m3589();
        } else {
            m3586();
        }
    }

    public C1387(Fragment fragment) {
        new HashMap();
        this.f5310 = 0;
        this.f5329 = false;
        this.f5308 = false;
        this.f5326 = false;
        this.f5313 = 0;
        this.f5324 = 0;
        this.f5312 = 0;
        this.f5319 = 0;
        this.f5323 = true;
        this.f5317 = fragment.getActivity();
        this.f5306 = fragment;
        m3592();
        m3594(this.f5317.getWindow());
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m3593(int i, int i2, int i3, int i4) {
        ViewGroup viewGroup = this.f5328;
        if (viewGroup != null) {
            viewGroup.setPadding(i, i2, i3, i4);
        }
        this.f5313 = i;
        this.f5324 = i2;
        this.f5312 = i3;
        this.f5319 = i4;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static boolean m3585(View view) {
        if (view == null) {
            return false;
        }
        if (view.getFitsSystemWindows()) {
            return true;
        }
        if (view instanceof ViewGroup) {
            ViewGroup viewGroup = (ViewGroup) view;
            int childCount = viewGroup.getChildCount();
            for (int i = 0; i < childCount; i++) {
                View childAt = viewGroup.getChildAt(i);
                if (((childAt instanceof DrawerLayout) && m3585(childAt)) || childAt.getFitsSystemWindows()) {
                    return true;
                }
            }
        }
        return false;
    }

    public C1387(android.app.Fragment fragment) {
        new HashMap();
        this.f5310 = 0;
        this.f5329 = false;
        this.f5308 = false;
        this.f5326 = false;
        this.f5313 = 0;
        this.f5324 = 0;
        this.f5312 = 0;
        this.f5319 = 0;
        this.f5323 = true;
        this.f5317 = fragment.getActivity();
        this.f5327 = fragment;
        m3592();
        m3594(this.f5317.getWindow());
    }

    @TargetApi(14)
    /* renamed from: K  reason: contains not printable characters */
    public static int m3584(Activity activity) {
        return new C1380(activity).f5285;
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m3592() {
        if (this.f5316 == null) {
            this.f5316 = m3583(this.f5317);
        }
        C1387 r0 = this.f5316;
        if (r0 != null && !r0.f5329) {
            r0.m3586();
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public final void m3594(Window window) {
        this.f5325 = window;
        this.f5330 = new C1378();
        this.f5318 = (ViewGroup) this.f5325.getDecorView();
        this.f5328 = (ViewGroup) this.f5318.findViewById(16908290);
    }

    /* renamed from: K  reason: contains not printable characters */
    public C1387 m3591(boolean z, float f) {
        this.f5330.f5275 = z;
        if (z) {
            if (!(C1841.m4806() || Build.VERSION.SDK_INT >= 26)) {
                this.f5330.f5259 = f;
                return this;
            }
        }
        C1378 r2 = this.f5330;
        r2.f5259 = r2.f5273;
        return this;
    }

    public C1387(DialogInterface$OnCancelListenerC1529 r3) {
        new HashMap();
        this.f5310 = 0;
        this.f5329 = false;
        this.f5308 = false;
        this.f5326 = false;
        this.f5313 = 0;
        this.f5324 = 0;
        this.f5312 = 0;
        this.f5319 = 0;
        this.f5320 = true;
        this.f5315 = true;
        this.f5317 = r3.getActivity();
        this.f5306 = r3;
        this.f5311 = r3.getDialog();
        m3592();
        m3594(this.f5311.getWindow());
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public C1387 m3588(boolean z, float f) {
        this.f5330.f5263 = z;
        if (z) {
            if (!(C1841.m4806() || C1841.m4813() || Build.VERSION.SDK_INT >= 23)) {
                this.f5330.f5247 = f;
                return this;
            }
        }
        C1378 r2 = this.f5330;
        r2.f5262 = r2.f5266;
        r2.f5247 = r2.f5270;
        return this;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public static C1387 m3583(Activity activity) {
        return C1367.m3559().m3560(activity);
    }

    public C1387(DialogFragment dialogFragment) {
        new HashMap();
        this.f5310 = 0;
        this.f5329 = false;
        this.f5308 = false;
        this.f5326 = false;
        this.f5313 = 0;
        this.f5324 = 0;
        this.f5312 = 0;
        this.f5319 = 0;
        this.f5320 = true;
        this.f5315 = true;
        this.f5317 = dialogFragment.getActivity();
        this.f5327 = dialogFragment;
        this.f5311 = dialogFragment.getDialog();
        m3592();
        m3594(this.f5311.getWindow());
    }
}
