package p000.p001.p021.p022;

import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewPropertyAnimator;
import android.view.Window;
import android.view.inputmethod.InputMethodManager;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import ar.tvplayer.core.data.db.entities.ފ;
import ar.tvplayer.core.domain.ލ;
import ar.tvplayer.core.util.CommonUtilsKt;
import java.util.ArrayList;
import kotlin.TypeCastException;
import p000.p001.p002.p003.p004.C0567;
import p025.p026.C1307;
import p025.p026.InterfaceC1306;
import p037.p065.p066.AbstractC1802;
import p037.p065.p066.C1829;
import p037.p065.p068.C1850;
import p037.p089.p090.ActivityC1999;
import p037.p118.AbstractC2485;
import p037.p118.C2458;
import p037.p118.C2493;
import p138.p145.p146.C2810;
import p138.p145.p146.C2814;
import p138.p145.p146.p151.InterfaceC2852;
import p138.p145.p146.p170.AbstractC3199;
import p138.p145.p146.p170.C3203;
import p138.p145.p146.p170.p171.C3208;
import p138.p145.p146.p170.p171.C3213;
import p138.p145.p146.p174.C3233;
import p138.p145.p146.p174.C3240;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6542;
import p402.C6549;
import p402.InterfaceC6538;
import p402.InterfaceC6540;
import p402.p405.InterfaceC6575;
import p402.p405.p406.EnumC6586;
import p402.p411.p412.InterfaceC6603;
import p402.p411.p412.InterfaceC6614;
import p402.p411.p413.AbstractC6636;
import p402.p411.p413.C6635;

/* JADX INFO: renamed from: ނ.֏.ؠ.֏.֏, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
@InterfaceC6540
public final class C1219 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final InterfaceC6538 f4314 = C4303.m7065((InterfaceC6603) C1220.f4316);

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final InterfaceC6538 f4315 = C4303.m7065((InterfaceC6603) C1220.f4317);

    /* JADX INFO: renamed from: ނ.֏.ؠ.֏.֏$֏, reason: contains not printable characters */
    /* JADX INFO: compiled from: com.android.tools.r8.jetbrains.kotlin-style lambda group */
    public static final class C1220 extends AbstractC6636 implements InterfaceC6603<Typeface> {

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public static final C1220 f4316 = new C1220(0);

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public static final C1220 f4317 = new C1220(1);

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final /* synthetic */ int f4318;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C1220(int i) {
            super(0);
            this.f4318 = i;
        }

        @Override // p402.p411.p412.InterfaceC6603
        /* JADX INFO: renamed from: ނ */
        public final Typeface mo1543() {
            int i = this.f4318;
            if (i == 0) {
                return Typeface.create("sans-serif", 0);
            }
            if (i == 1) {
                return Typeface.create("sans-serif-medium", 0);
            }
            throw null;
        }
    }

    /* JADX INFO: renamed from: ނ.֏.ؠ.֏.֏$ؠ, reason: contains not printable characters */
    public static final class C1221 implements AbstractC1802.InterfaceC1804 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final /* synthetic */ ProgressBar f4319;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final /* synthetic */ int f4320;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public final /* synthetic */ int f4321;

        public C1221(ProgressBar progressBar, int i, int i2) {
            this.f4319 = progressBar;
            this.f4320 = i;
            this.f4321 = i2;
        }

        @Override // p037.p065.p066.AbstractC1802.InterfaceC1804
        /* JADX INFO: renamed from: ֏ */
        public final void mo1547(AbstractC1802 abstractC1802) {
            if (abstractC1802 == null) {
                C6635.m9824("it");
                throw null;
            }
            Object objM3626 = ((C1829) abstractC1802).m3626();
            if (objM3626 == null) {
                throw new TypeCastException("null cannot be cast to non-null type kotlin.Float");
            }
            float fFloatValue = ((Float) objM3626).floatValue();
            this.f4319.setProgress(C4303.m6975(fFloatValue * (this.f4321 - r1)) + this.f4320);
        }
    }

    /* JADX INFO: renamed from: ނ.֏.ؠ.֏.֏$ހ, reason: contains not printable characters */
    public static final class RunnableC1222 implements Runnable {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final /* synthetic */ View f4322;

        public RunnableC1222(View view) {
            this.f4322 = view;
        }

        @Override // java.lang.Runnable
        public final void run() {
            ViewPropertyAnimator viewPropertyAnimatorWithLayer = this.f4322.animate().scaleX(1.0f).scaleY(1.0f).withLayer();
            C6635.m9823((Object) viewPropertyAnimatorWithLayer, "animate()\n              …             .withLayer()");
            viewPropertyAnimatorWithLayer.setDuration(150L);
        }
    }

    /* JADX INFO: renamed from: ނ.֏.ؠ.֏.֏$ށ, reason: contains not printable characters */
    public static final class ViewOnLayoutChangeListenerC1223 implements View.OnLayoutChangeListener {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final /* synthetic */ InterfaceC1306 f4323;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final /* synthetic */ View f4324;

        public ViewOnLayoutChangeListenerC1223(InterfaceC1306 interfaceC1306, View view) {
            this.f4323 = interfaceC1306;
            this.f4324 = view;
        }

        @Override // android.view.View.OnLayoutChangeListener
        public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) {
            this.f4324.removeOnLayoutChangeListener(this);
            InterfaceC1306 interfaceC1306 = this.f4323;
            C6549 c6549 = C6549.f19328;
            C6542.C6543 c6543 = C6542.f19318;
            interfaceC1306.mo2608(c6549);
        }
    }

    /* JADX INFO: renamed from: ނ.֏.ؠ.֏.֏$ނ, reason: contains not printable characters */
    public static final class C1224 extends AbstractC6636 implements InterfaceC6614<Throwable, C6549> {

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final /* synthetic */ ViewOnLayoutChangeListenerC1223 f4325;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public final /* synthetic */ View f4326;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C1224(ViewOnLayoutChangeListenerC1223 viewOnLayoutChangeListenerC1223, View view) {
            super(1);
            this.f4325 = viewOnLayoutChangeListenerC1223;
            this.f4326 = view;
        }

        @Override // p402.p411.p412.InterfaceC6614
        /* JADX INFO: renamed from: ؠ */
        public C6549 mo1606(Throwable th) {
            this.f4326.removeOnLayoutChangeListener(this.f4325);
            return C6549.f19328;
        }
    }

    /* JADX INFO: renamed from: ނ.֏.ؠ.֏.֏$ރ, reason: contains not printable characters */
    public static final class RunnableC1225 implements Runnable {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final /* synthetic */ InterfaceC6603 f4327;

        public RunnableC1225(InterfaceC6603 interfaceC6603) {
            this.f4327 = interfaceC6603;
        }

        @Override // java.lang.Runnable
        public final void run() {
            InterfaceC6603 interfaceC6603 = this.f4327;
            if (interfaceC6603 != null) {
            }
        }
    }

    /* JADX INFO: renamed from: ނ.֏.ؠ.֏.֏$ބ, reason: contains not printable characters */
    public static final class ViewOnKeyListenerC1226 implements View.OnKeyListener {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final /* synthetic */ InterfaceC6614 f4328;

        public ViewOnKeyListenerC1226(InterfaceC6614 interfaceC6614) {
            this.f4328 = interfaceC6614;
        }

        @Override // android.view.View.OnKeyListener
        public final boolean onKey(View view, int i, KeyEvent keyEvent) {
            if (!(i == 82 || i == 176)) {
                return false;
            }
            C6635.m9823((Object) keyEvent, "event");
            if (keyEvent.getAction() != 1) {
                return false;
            }
            InterfaceC6614 interfaceC6614 = this.f4328;
            C6635.m9823((Object) view, "v");
            interfaceC6614.mo1606(view);
            return true;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m2467(Context context, int i) {
        if (context != null) {
            return context.getResources().getDimensionPixelSize(i);
        }
        C6635.m9824("$this$dimen");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m2468(View view, int i) {
        if (view != null) {
            return view.getResources().getDimensionPixelSize(i);
        }
        C6635.m9824("$this$dimen");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m2469(Fragment fragment, int i) {
        if (fragment != null) {
            return fragment.getResources().getDimensionPixelSize(i);
        }
        C6635.m9824("$this$dimen");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final Typeface m2470() {
        return (Typeface) f4314.getValue();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final View m2471(ViewGroup viewGroup, int i, boolean z) {
        if (viewGroup == null) {
            C6635.m9824("$this$inflate");
            throw null;
        }
        View viewInflate = LayoutInflater.from(viewGroup.getContext()).inflate(i, viewGroup, z);
        C6635.m9823((Object) viewInflate, "LayoutInflater.from(cont…utId, this, attachToRoot)");
        return viewInflate;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ View m2472(ViewGroup viewGroup, int i, boolean z, int i2) {
        if ((i2 & 2) != 0) {
            z = false;
        }
        return m2471(viewGroup, i, z);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final Object m2473(View view, InterfaceC6575<? super C6549> interfaceC6575) {
        C1307 c1307 = new C1307(C4303.m7066((InterfaceC6575) interfaceC6575), 1);
        c1307.m2639();
        ViewOnLayoutChangeListenerC1223 viewOnLayoutChangeListenerC1223 = new ViewOnLayoutChangeListenerC1223(c1307, view);
        c1307.mo2624((InterfaceC6614<? super Throwable, C6549>) new C1224(viewOnLayoutChangeListenerC1223, view));
        view.addOnLayoutChangeListener(viewOnLayoutChangeListenerC1223);
        Object objM2636 = c1307.m2636();
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        return objM2636;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2474(Activity activity, boolean z) {
        View decorView;
        if (activity == null) {
            C6635.m9824("$this$setImmersiveModeEnabled");
            throw null;
        }
        Window window = activity.getWindow();
        if (window == null || (decorView = window.getDecorView()) == null) {
            return;
        }
        decorView.setSystemUiVisibility(z ? 5894 : 1792);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2475(Context context, CharSequence charSequence) {
        if (charSequence == null) {
            C6635.m9824("text");
            throw null;
        }
        if (context != null) {
            Toast.makeText(context, charSequence, 1).show();
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2476(View view) {
        if (view == null) {
            C6635.m9824("$this$hideSoftKeyboard");
            throw null;
        }
        Context context = view.getContext();
        C6635.m9823((Object) context, "context");
        InputMethodManager inputMethodManager = (InputMethodManager) C1850.m3648(context, InputMethodManager.class);
        if (inputMethodManager != null) {
            inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2477(View view, float f) {
        if (view != null) {
            view.animate().scaleX(f).scaleY(f).withLayer().setDuration(150L).withEndAction(new RunnableC1222(view));
        } else {
            C6635.m9824("$this$animateScale");
            throw null;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m2478(View view, float f, int i) {
        if ((i & 1) != 0) {
            f = 1.2f;
        }
        m2477(view, f);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2479(View view, int i, float f) {
        int iM6975;
        if (view == null) {
            C6635.m9824("$this$applyTransparencyAlpha");
            throw null;
        }
        Drawable background = view.getBackground();
        if (background == null || background.getAlpha() == (iM6975 = 255 - C4303.m6975(((f * i) / 100.0f) * 255))) {
            return;
        }
        Drawable drawableMutate = background.mutate();
        C6635.m9823((Object) drawableMutate, "mutate()");
        drawableMutate.setAlpha(iM6975);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m2480(View view, int i, float f, int i2) {
        if ((i2 & 2) != 0) {
            f = 0.5f;
        }
        m2479(view, i, f);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2481(View view, int i, int i2) {
        if (view == null) {
            C6635.m9824("$this$setHorMargins");
            throw null;
        }
        ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
        if (layoutParams == null) {
            throw new TypeCastException("null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams");
        }
        ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams;
        marginLayoutParams.setMarginStart(i);
        marginLayoutParams.setMarginEnd(i2);
        view.setLayoutParams(marginLayoutParams);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2482(View view, long j, InterfaceC6603<C6549> interfaceC6603) {
        if (view != null) {
            view.animate().alpha(0.0f).setDuration(j).withLayer().withEndAction(new RunnableC1225(interfaceC6603));
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m2483(View view, long j, InterfaceC6603 interfaceC6603, int i) {
        if ((i & 1) != 0) {
            j = 150;
        }
        if ((i & 2) != 0) {
            interfaceC6603 = null;
        }
        if (view != null) {
            view.animate().alpha(1.0f).setDuration(j).withLayer().withEndAction(new RunnableC1253(interfaceC6603));
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2484(View view, InterfaceC6614<? super View, C6549> interfaceC6614) {
        if (view == null) {
            C6635.m9824("$this$setOnMenuKeyListener");
            throw null;
        }
        if (interfaceC6614 != null) {
            view.setOnKeyListener(new ViewOnKeyListenerC1226(interfaceC6614));
        } else {
            C6635.m9824("action");
            throw null;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m2485(ViewGroup viewGroup, AbstractC2485 abstractC2485, Long l, int i) {
        if ((i & 2) != 0) {
            abstractC2485 = null;
        }
        if ((i & 4) != 0) {
            l = null;
        }
        if (viewGroup == null) {
            C6635.m9824("sceneRoot");
            throw null;
        }
        C2493.f7849.remove(viewGroup);
        ArrayList<AbstractC2485> orDefault = C2493.m4572().getOrDefault(viewGroup, null);
        if (orDefault != null && !orDefault.isEmpty()) {
            ArrayList arrayList = new ArrayList(orDefault);
            int size = arrayList.size();
            while (true) {
                size--;
                if (size < 0) {
                    break;
                } else {
                    ((AbstractC2485) arrayList.get(size)).mo4550(viewGroup);
                }
            }
        }
        if (l == null) {
            C2493.m4573(viewGroup, abstractC2485);
            return;
        }
        if (abstractC2485 == null) {
            abstractC2485 = new C2458();
        }
        abstractC2485.mo4545(l.longValue());
        C2493.m4573(viewGroup, abstractC2485);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2486(ProgressBar progressBar, int i, boolean z) {
        if (progressBar == null) {
            C6635.m9824("$this$animateProgress");
            throw null;
        }
        if (!z) {
            progressBar.setProgress(i);
            return;
        }
        int progress = progressBar.getProgress();
        C1829 c1829M3618 = C1829.m3618(0.0f, 1.0f);
        c1829M3618.m3554(new C1221(progressBar, progress, i));
        c1829M3618.mo3562(200L);
        c1829M3618.m3622(false);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2487(TextView textView, String str, boolean z) {
        if (textView == null) {
            C6635.m9824("$this$setTextOrHide");
            throw null;
        }
        if (str == null || str.length() == 0) {
            textView.setVisibility(8);
            return;
        }
        if (z) {
            textView.setVisibility(0);
        }
        textView.setText(str);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m2488(TextView textView, String str, boolean z, int i) {
        if ((i & 2) != 0) {
            z = true;
        }
        m2487(textView, str, z);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2489(Fragment fragment, ފ r5, ImageView imageView, Drawable drawable, int i) {
        C2814 c2814Mo2541;
        Object c3213;
        if (fragment == null) {
            C6635.m9824("$this$showLogo");
            throw null;
        }
        if (imageView == null) {
            C6635.m9824("imageView");
            throw null;
        }
        if (r5 != null) {
            if (!(r5.֏(false).length() == 0)) {
                C1248 c1248 = ލ.ލ(fragment);
                C1229 c1229 = new C1229(r5);
                C1247 c1247 = (C1247) c1248.mo2550();
                c1247.f8682 = c1229;
                c1247.f8685 = true;
                if (i != -1) {
                    c1247.mo2527((AbstractC3199<?>) new C3203().mo2528(i, i));
                }
                C2814 c2814Mo2529 = ((C1247) c1247.m5266((InterfaceC2852<Bitmap>) C1235.f4334, true)).mo2538(drawable).mo2529(drawable);
                if (c2814Mo2529 == null) {
                    throw null;
                }
                C3240.m5335();
                C0567.m1858(imageView, "Argument must not be null");
                if (!AbstractC3199.m5264(c2814Mo2529.f9479, 2048) && c2814Mo2529.f9492 && imageView.getScaleType() != null) {
                    switch (C2814.C2815.f8686[imageView.getScaleType().ordinal()]) {
                        case 1:
                            c2814Mo2541 = c2814Mo2529.clone().mo2541();
                            break;
                        case 2:
                            c2814Mo2541 = c2814Mo2529.clone().mo2542();
                            break;
                        case 3:
                        case 4:
                        case 5:
                            c2814Mo2541 = c2814Mo2529.clone().mo2543();
                            break;
                        case 6:
                            c2814Mo2541 = c2814Mo2529.clone().mo2542();
                            break;
                        default:
                            c2814Mo2541 = c2814Mo2529;
                            break;
                    }
                } else {
                    c2814Mo2541 = c2814Mo2529;
                }
                C2810 c2810 = c2814Mo2529.f8680;
                Class<TranscodeType> cls = c2814Mo2529.f8679;
                if (c2810.f8660 == null) {
                    throw null;
                }
                if (Bitmap.class.equals(cls)) {
                    c3213 = new C3208(imageView);
                } else {
                    if (!Drawable.class.isAssignableFrom(cls)) {
                        throw new IllegalArgumentException("Unhandled class: " + cls + ", try .as*(Class).transcode(ResourceTranscoder)");
                    }
                    c3213 = new C3213(imageView);
                }
                c2814Mo2529.m4913(c3213, null, c2814Mo2541, C3233.f9578);
                C6635.m9823(c3213, "GlideApp.with(this)\n    …         .into(imageView)");
                return;
            }
        }
        imageView.setImageDrawable(drawable);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m2490(Fragment fragment, ފ r1, ImageView imageView, Drawable drawable, int i, int i2) {
        if ((i2 & 8) != 0) {
            i = -1;
        }
        m2489(fragment, r1, imageView, drawable, i);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2491(RecyclerView recyclerView, Object obj) {
        RecyclerView.AbstractC0191 adapter;
        if (recyclerView == null || (adapter = recyclerView.getAdapter()) == null) {
            return;
        }
        adapter.f1232.m601(0, adapter.mo327(), obj);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m2492(RecyclerView recyclerView, Object obj, int i) {
        if ((i & 1) != 0) {
            obj = null;
        }
        m2491(recyclerView, obj);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m2493(View[] viewArr, boolean z, boolean z2) {
        if (viewArr == null) {
            C6635.m9824("views");
            throw null;
        }
        int i = z ? 0 : z2 ? 8 : 4;
        for (View view : viewArr) {
            view.setVisibility(i);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m2494(View[] viewArr, boolean z, boolean z2, int i) {
        if ((i & 4) != 0) {
            z2 = true;
        }
        m2493(viewArr, z, z2);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m2495(int i) {
        switch (i) {
            default:
                switch (i) {
                    case 144:
                    case 145:
                    case 146:
                    case 147:
                    case 148:
                    case 149:
                    case 150:
                    case 151:
                    case 152:
                    case 153:
                        break;
                    default:
                        return false;
                }
            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
            case 12:
            case 13:
            case 14:
            case 15:
            case 16:
                return true;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m2496(KeyEvent keyEvent, boolean z, boolean z2, InterfaceC6603<C6549> interfaceC6603) {
        if (interfaceC6603 == null) {
            C6635.m9824("action");
            throw null;
        }
        if ((keyEvent == null || keyEvent.getAction() == 0) && z) {
            if (z2) {
                CommonUtilsKt.֏(0, interfaceC6603, 1);
            } else {
                interfaceC6603.mo1543();
            }
        }
        return true;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ boolean m2497(KeyEvent keyEvent, boolean z, boolean z2, InterfaceC6603 interfaceC6603, int i) {
        if ((i & 2) != 0) {
            z = true;
        }
        if ((i & 4) != 0) {
            z2 = false;
        }
        m2496(keyEvent, z, z2, (InterfaceC6603<C6549>) interfaceC6603);
        return true;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m2498(View view, View view2) {
        if (view2 == null) {
            C6635.m9824("parent");
            throw null;
        }
        if (view == null) {
            return false;
        }
        while (view != view2) {
            Object parent = view.getParent();
            if (!(parent instanceof View)) {
                parent = null;
            }
            view = (View) parent;
            if (view == null) {
                return false;
            }
        }
        return true;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ boolean m2499(boolean z, KeyEvent keyEvent, boolean z2, boolean z3, InterfaceC6603 interfaceC6603, int i) {
        if ((i & 4) != 0) {
            z2 = true;
        }
        if ((i & 8) != 0) {
            z3 = false;
        }
        if (interfaceC6603 == null) {
            C6635.m9824("action");
            throw null;
        }
        if (z) {
            m2496(keyEvent, z2, z3, (InterfaceC6603<C6549>) interfaceC6603);
        } else {
            m2508(keyEvent, z2, z3, interfaceC6603);
        }
        return true;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final int m2500(Context context, int i) {
        if (context == null) {
            C6635.m9824("$this$dip");
            throw null;
        }
        Resources resources = context.getResources();
        C6635.m9823((Object) resources, "resources");
        return C4303.m6975(i * resources.getDisplayMetrics().density);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final int m2501(View view, int i) {
        if (view == null) {
            C6635.m9824("$this$dip");
            throw null;
        }
        Context context = view.getContext();
        C6635.m9823((Object) context, "context");
        return m2500(context, i);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final int m2502(Fragment fragment, int i) {
        if (fragment == null) {
            C6635.m9824("$this$dip");
            throw null;
        }
        ActivityC1999 activityC1999RequireActivity = fragment.requireActivity();
        C6635.m9823((Object) activityC1999RequireActivity, "requireActivity()");
        return m2500(activityC1999RequireActivity, i);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final Typeface m2503() {
        return (Typeface) f4315.getValue();
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final void m2504(Context context, CharSequence charSequence) {
        if (charSequence == null) {
            C6635.m9824("text");
            throw null;
        }
        if (context != null) {
            Toast.makeText(context, charSequence, 0).show();
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final void m2505(View view) {
        if (view == null) {
            C6635.m9824("$this$showSoftKeyboard");
            throw null;
        }
        view.requestFocus();
        Context context = view.getContext();
        C6635.m9823((Object) context, "context");
        InputMethodManager inputMethodManager = (InputMethodManager) C1850.m3648(context, InputMethodManager.class);
        if (inputMethodManager != null) {
            inputMethodManager.showSoftInput(view, 0);
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final void m2506(View view, int i, int i2) {
        if (view == null) {
            C6635.m9824("$this$setHorMarginsRelative");
            throw null;
        }
        ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
        if (layoutParams == null) {
            throw new TypeCastException("null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams");
        }
        ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams;
        marginLayoutParams.setMarginStart(marginLayoutParams.getMarginStart() + i);
        marginLayoutParams.setMarginEnd(marginLayoutParams.getMarginEnd() + i2);
        view.setLayoutParams(marginLayoutParams);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final boolean m2507(int i) {
        return i == 21 || i == 22 || i == 20 || i == 19;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final boolean m2508(KeyEvent keyEvent, boolean z, boolean z2, InterfaceC6603<C6549> interfaceC6603) {
        if (interfaceC6603 == null) {
            C6635.m9824("action");
            throw null;
        }
        if ((keyEvent == null || keyEvent.getAction() == 1) && z) {
            if (z2) {
                CommonUtilsKt.֏(0, interfaceC6603, 1);
            } else {
                interfaceC6603.mo1543();
            }
        }
        return true;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static /* synthetic */ boolean m2509(KeyEvent keyEvent, boolean z, boolean z2, InterfaceC6603 interfaceC6603, int i) {
        if ((i & 2) != 0) {
            z = true;
        }
        if ((i & 4) != 0) {
            z2 = false;
        }
        m2508(keyEvent, z, z2, interfaceC6603);
        return true;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final void m2510(Context context, int i) {
        if (context != null) {
            Toast.makeText(context, i, 1).show();
        }
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final void m2511(View view, int i, int i2) {
        if (view == null) {
            C6635.m9824("$this$setVertMargins");
            throw null;
        }
        ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
        if (layoutParams == null) {
            throw new TypeCastException("null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams");
        }
        ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams;
        marginLayoutParams.topMargin = i;
        marginLayoutParams.bottomMargin = i2;
        view.setLayoutParams(marginLayoutParams);
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static final void m2512(Context context, int i) {
        if (context != null) {
            Toast.makeText(context, i, 0).show();
        }
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static final void m2513(View view, int i, int i2) {
        if (view == null) {
            C6635.m9824("$this$setVertMarginsRelative");
            throw null;
        }
        ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
        if (layoutParams == null) {
            throw new TypeCastException("null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams");
        }
        ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams;
        marginLayoutParams.topMargin += i;
        marginLayoutParams.bottomMargin += i2;
        view.setLayoutParams(marginLayoutParams);
    }
}
