package o;

import android.view.ContentInfo;
import android.view.View;
import java.util.Objects;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class Mj0 {
    public static String[] a(View view) {
        return view.getReceiveContentMimeTypes();
    }

    public static C2271qm b(View view, C2271qm c2271qm) {
        ContentInfo contentInfoM = c2271qm.a.m();
        Objects.requireNonNull(contentInfoM);
        ContentInfo contentInfoPerformReceiveContent = view.performReceiveContent(contentInfoM);
        if (contentInfoPerformReceiveContent == null) {
            return null;
        }
        return contentInfoPerformReceiveContent == contentInfoM ? c2271qm : new C2271qm(new OD(contentInfoPerformReceiveContent));
    }
}
