package ඓ.ᨨ.K.ඓ.ʬ;

import android.content.Context;
import android.database.Cursor;
import android.os.Bundle;
import androidx.fragment.app.FragmentActivity;
import com.zhihu.matisse.internal.entity.Album;
import java.lang.ref.WeakReference;
import ඓ.ᨨ.K.ඓ.ῲ.C0776;
import ῲ.ᓣ.ῲ.C1683;
import ῲ.ᓣ.K.AbstractC1695;

/* renamed from: ඓ.ᨨ.K.ඓ.ʬ.ῲ  reason: contains not printable characters */
/* compiled from: AlbumMediaCollection */
public class C0767 implements AbstractC1695.AbstractC1696<Cursor> {

    /* renamed from: ʬ  reason: contains not printable characters */
    public AbstractC0768 f3919;

    /* renamed from: ῲ  reason: contains not printable characters */
    public AbstractC1695 f3920;

    /* renamed from: K  reason: contains not printable characters */
    public WeakReference<Context> f3921;

    /* renamed from: ඓ.ᨨ.K.ඓ.ʬ.ῲ$K  reason: contains not printable characters */
    /* compiled from: AlbumMediaCollection */
    public interface AbstractC0768 {
        /* renamed from: K  reason: contains not printable characters */
        void m2332(Cursor cursor);

        /* renamed from: 㴹  reason: contains not printable characters */
        void m2333();
    }

    /* JADX DEBUG: Method arguments types fixed to match base method, original types: [ῲ.ᓣ.ῲ.ʬ, java.lang.Object] */
    @Override // ῲ.ᓣ.K.AbstractC1695.AbstractC1696
    /* renamed from: K  reason: contains not printable characters */
    public void m2331(C1683<Cursor> r1, Cursor cursor) {
        Cursor cursor2 = cursor;
        if (this.f3921.get() != null) {
            this.f3919.m2332(cursor2);
        }
    }

    @Override // ῲ.ᓣ.K.AbstractC1695.AbstractC1696
    /* renamed from: K  reason: contains not printable characters */
    public C1683<Cursor> m2327(int i, Bundle bundle) {
        Album album;
        Context context = this.f3921.get();
        if (context == null || (album = (Album) bundle.getParcelable("args_album")) == null) {
            return null;
        }
        boolean z = false;
        if (album.m1905() && bundle.getBoolean("args_enable_capture", false)) {
            z = true;
        }
        return C0776.m2348(context, album, z);
    }

    @Override // ῲ.ᓣ.K.AbstractC1695.AbstractC1696
    /* renamed from: K  reason: contains not printable characters */
    public void m2330(C1683<Cursor> r1) {
        if (this.f3921.get() != null) {
            this.f3919.m2333();
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m2328(FragmentActivity fragmentActivity, AbstractC0768 k) {
        this.f3921 = new WeakReference<>(fragmentActivity);
        this.f3920 = fragmentActivity.getSupportLoaderManager();
        this.f3919 = k;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m2329(Album album, boolean z) {
        Bundle bundle = new Bundle();
        bundle.putParcelable("args_album", album);
        bundle.putBoolean("args_enable_capture", z);
        this.f3920.m4340(2, bundle, this);
    }
}
