package ඓ.ᨨ.K.ඓ.㸾.ʬ;

import android.content.Context;
import android.content.res.TypedArray;
import android.database.Cursor;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CursorAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.zhihu.matisse.R$attr;
import com.zhihu.matisse.R$dimen;
import com.zhihu.matisse.R$id;
import com.zhihu.matisse.R$layout;
import com.zhihu.matisse.internal.entity.Album;
import ඓ.ᨨ.K.ඓ.K.C0778;

/* renamed from: ඓ.ᨨ.K.ඓ.㸾.ʬ.ῲ  reason: contains not printable characters */
/* compiled from: AlbumsAdapter */
public class C0784 extends CursorAdapter {

    /* renamed from: ῲ  reason: contains not printable characters */
    public final Drawable f3975;

    public C0784(Context context, Cursor cursor, boolean z) {
        super(context, cursor, z);
        TypedArray obtainStyledAttributes = context.getTheme().obtainStyledAttributes(new int[]{R$attr.album_thumbnail_placeholder});
        this.f3975 = obtainStyledAttributes.getDrawable(0);
        obtainStyledAttributes.recycle();
    }

    public void bindView(View view, Context context, Cursor cursor) {
        Album r10 = Album.m1903(cursor);
        ((TextView) view.findViewById(R$id.album_name)).setText(r10.m1907(context));
        ((TextView) view.findViewById(R$id.album_media_count)).setText(String.valueOf(r10.m1906()));
        C0778.C0779.f3967.f3947.m2308(context, context.getResources().getDimensionPixelSize(R$dimen.media_grid_size), this.f3975, (ImageView) view.findViewById(R$id.album_cover), r10.m1904());
    }

    public View newView(Context context, Cursor cursor, ViewGroup viewGroup) {
        return LayoutInflater.from(context).inflate(R$layout.album_list_item, viewGroup, false);
    }
}
