package com.google.android.material.internal;

import android.graphics.Rect;
import android.view.View;
import androidx.core.view.b3;
import androidx.core.view.f3;

/* JADX INFO: loaded from: classes2.dex */
public final class j0 implements androidx.core.view.l0, n, s0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ Object f22775a;

    public /* synthetic */ j0(Object obj) {
        this.f22775a = obj;
    }

    @Override // androidx.core.view.l0
    public final f3 i(View view, f3 f3Var) {
        ScrimInsetsFrameLayout scrimInsetsFrameLayout = (ScrimInsetsFrameLayout) this.f22775a;
        if (scrimInsetsFrameLayout.f22684a == null) {
            scrimInsetsFrameLayout.f22684a = new Rect();
        }
        scrimInsetsFrameLayout.f22684a.set(f3Var.b(), f3Var.d(), f3Var.c(), f3Var.a());
        scrimInsetsFrameLayout.e(f3Var);
        b3 b3Var = f3Var.f1747a;
        boolean z10 = true;
        if ((!b3Var.j().equals(j0.d.f28501e)) && scrimInsetsFrameLayout.insetForeground != null) {
            z10 = false;
        }
        scrimInsetsFrameLayout.setWillNotDraw(z10);
        scrimInsetsFrameLayout.postInvalidateOnAnimation();
        return b3Var.c();
    }
}
