package androidx.core.view;

import android.view.ContentInfo;
import android.view.OnReceiveContentListener;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.Objects;

/* JADX INFO: loaded from: classes.dex */
public final class q1 implements OnReceiveContentListener {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final m0 f1803a;

    public q1(m0 m0Var) {
        this.f1803a = m0Var;
    }

    @Nullable
    public ContentInfo onReceiveContent(@NonNull View view, @NonNull ContentInfo contentInfo) {
        m mVar = new m(new j(contentInfo));
        m mVarOnReceiveContent = ((u0.q) this.f1803a).onReceiveContent(view, mVar);
        if (mVarOnReceiveContent == null) {
            return null;
        }
        if (mVarOnReceiveContent == mVar) {
            return contentInfo;
        }
        ContentInfo wrapped = mVarOnReceiveContent.f1785a.getWrapped();
        Objects.requireNonNull(wrapped);
        return androidx.core.app.t0.l(wrapped);
    }
}
