package com.bytedance.android.livesdk.liveroom;

import X.07s;
import X.088;
import X.C5190T3q;
import android.graphics.Rect;
import android.view.View;
import androidx.core.g.t;
import com.bytedance.covode.number.Covode;

public class LiveVerticalViewPager$4 implements 088 {
    public final /* synthetic */ C5190T3q LIZ;
    public final Rect LIZIZ = new Rect();

    static {
        Covode.recordClassIndex(17583);
    }

    public LiveVerticalViewPager$4(C5190T3q t3q) {
        this.LIZ = t3q;
    }

    public final 07s LIZ(View view, 07s r9) {
        07s LIZ2 = t.LIZ(view, r9);
        if (LIZ2.LIZIZ.LIZIZ()) {
            return LIZ2;
        }
        Rect rect = this.LIZIZ;
        rect.left = LIZ2.LIZ();
        rect.top = LIZ2.LIZIZ();
        rect.right = LIZ2.LIZJ();
        rect.bottom = LIZ2.LIZLLL();
        int childCount = this.LIZ.getChildCount();
        for (int i = 0; i < childCount; i++) {
            07s LIZIZ2 = t.LIZIZ(this.LIZ.getChildAt(i), LIZ2);
            rect.left = Math.min(LIZIZ2.LIZ(), rect.left);
            rect.top = Math.min(LIZIZ2.LIZIZ(), rect.top);
            rect.right = Math.min(LIZIZ2.LIZJ(), rect.right);
            rect.bottom = Math.min(LIZIZ2.LIZLLL(), rect.bottom);
        }
        return LIZ2.LIZ(rect.left, rect.top, rect.right, rect.bottom);
    }
}
