package p000.p001.p002.p012.p013;

import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import androidx.fragment.app.FragmentContainerView;
import kotlin.TypeCastException;
import p000.p001.p002.p012.C1067;
import p037.p065.p066.AbstractC1802;
import p037.p065.p066.C1801;
import p037.p065.p066.C1829;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.InterfaceC6540;
import p402.p411.p413.C6635;

/* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ޱ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
@InterfaceC6540
public final class RunnableC1059 implements Runnable {

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

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

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

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

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

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

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public final /* synthetic */ boolean f4037;

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

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

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

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

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

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public final /* synthetic */ RunnableC1059 f4042;

        public C1060(int i, int i2, int i3, int i4, RunnableC1059 runnableC1059) {
            this.f4038 = i;
            this.f4039 = i2;
            this.f4040 = i3;
            this.f4041 = i4;
            this.f4042 = runnableC1059;
        }

        @Override // p037.p065.p066.AbstractC1802.InterfaceC1804
        /* JADX INFO: renamed from: ֏ */
        public final void mo1547(AbstractC1802 abstractC1802) {
            if (abstractC1802 == null) {
                C6635.m9824("it");
                throw null;
            }
            FragmentContainerView fragmentContainerView = (FragmentContainerView) this.f4042.f4032.m2363(C1067.containerPlayerHost);
            if (fragmentContainerView != null) {
                ViewGroup.LayoutParams layoutParams = fragmentContainerView.getLayoutParams();
                if (layoutParams == null) {
                    throw new TypeCastException("null cannot be cast to non-null type android.widget.FrameLayout.LayoutParams");
                }
                FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) layoutParams;
                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();
                layoutParams2.width = C4303.m6975((this.f4038 - r2) * fFloatValue) + this.f4042.f4033;
                layoutParams2.height = C4303.m6975((this.f4039 - r2) * fFloatValue) + this.f4042.f4034;
                layoutParams2.leftMargin = C4303.m6975((this.f4040 - r2) * fFloatValue) + this.f4042.f4035;
                layoutParams2.topMargin = C4303.m6975(fFloatValue * (this.f4041 - r2)) + this.f4042.f4036;
                fragmentContainerView.setLayoutParams(layoutParams2);
            }
        }
    }

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

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

        public C1061(int i, int i2, int i3, int i4, RunnableC1059 runnableC1059) {
            this.f4043 = runnableC1059;
        }

        @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
        /* JADX INFO: renamed from: ֏ */
        public void mo1260(AbstractC1802 abstractC1802) {
            if (abstractC1802 == null) {
                C6635.m9824("animator");
                throw null;
            }
            View view = this.f4043.f4032.m2374().mView;
            if (view != null) {
                view.setTag(C1067.transition_in_progress_tag, false);
                view.setTag(C1067.player_zooming_in_progress_tag, false);
            }
        }

        @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
        /* JADX INFO: renamed from: ֏ */
        public /* synthetic */ void mo1548(AbstractC1802 abstractC1802, boolean z) {
            C1801.m3550(this, abstractC1802, z);
        }

        @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
        /* JADX INFO: renamed from: ؠ */
        public void mo1549(AbstractC1802 abstractC1802) {
            if (abstractC1802 != null) {
                return;
            }
            C6635.m9824("animator");
            throw null;
        }

        @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
        /* JADX INFO: renamed from: ؠ */
        public /* synthetic */ void mo1550(AbstractC1802 abstractC1802, boolean z) {
            C1801.m3551(this, abstractC1802, z);
        }

        @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
        /* JADX INFO: renamed from: ހ */
        public void mo1261(AbstractC1802 abstractC1802) {
            if (abstractC1802 != null) {
                return;
            }
            C6635.m9824("animator");
            throw null;
        }

        @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
        /* JADX INFO: renamed from: ށ */
        public void mo1551(AbstractC1802 abstractC1802) {
            if (abstractC1802 != null) {
                return;
            }
            C6635.m9824("animator");
            throw null;
        }
    }

    public RunnableC1059(View view, SharedPreferencesOnSharedPreferenceChangeListenerC1037 sharedPreferencesOnSharedPreferenceChangeListenerC1037, int i, int i2, int i3, int i4, boolean z) {
        this.f4031 = view;
        this.f4032 = sharedPreferencesOnSharedPreferenceChangeListenerC1037;
        this.f4033 = i;
        this.f4034 = i2;
        this.f4035 = i3;
        this.f4036 = i4;
        this.f4037 = z;
    }

    @Override // java.lang.Runnable
    public final void run() {
        View viewM2363 = this.f4032.m2363(C1067.playerHostPlaceholder);
        C6635.m9823((Object) viewM2363, "playerHostPlaceholder");
        int left = viewM2363.getLeft();
        View viewM23632 = this.f4032.m2363(C1067.playerHostPlaceholder);
        C6635.m9823((Object) viewM23632, "playerHostPlaceholder");
        int top = viewM23632.getTop();
        View viewM23633 = this.f4032.m2363(C1067.playerHostPlaceholder);
        C6635.m9823((Object) viewM23633, "playerHostPlaceholder");
        int width = viewM23633.getWidth();
        View viewM23634 = this.f4032.m2363(C1067.playerHostPlaceholder);
        C6635.m9823((Object) viewM23634, "playerHostPlaceholder");
        int height = viewM23634.getHeight();
        SharedPreferencesOnSharedPreferenceChangeListenerC1037 sharedPreferencesOnSharedPreferenceChangeListenerC1037 = this.f4032;
        C1829 c1829M3618 = C1829.m3618(0.0f, 1.0f);
        c1829M3618.m3554(new C1060(width, height, left, top, this));
        c1829M3618.m3553(new C1061(width, height, left, top, this));
        c1829M3618.mo3562(this.f4037 ? 300L : 0L);
        c1829M3618.m3622(false);
        sharedPreferencesOnSharedPreferenceChangeListenerC1037.f3977 = c1829M3618;
    }
}
