package com.zhihu.matisse.internal.entity;

import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import com.facebook.share.internal.ShareConstants;
import com.zhihu.matisse.R$string;

public class Album implements Parcelable {
    public static final Parcelable.Creator<Album> CREATOR = new C0564();

    /* renamed from: 㴹  reason: contains not printable characters */
    public static final String f3330 = String.valueOf(-1);

    /* renamed from: ʬ  reason: contains not printable characters */
    public final Uri f3331;

    /* renamed from: ඓ  reason: contains not printable characters */
    public long f3332;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final String f3333;

    /* renamed from: 㸾  reason: contains not printable characters */
    public final String f3334;

    /* renamed from: com.zhihu.matisse.internal.entity.Album$K  reason: contains not printable characters */
    public static class C0564 implements Parcelable.Creator<Album> {
        /* Return type fixed from 'java.lang.Object' to match base method */
        @Override // android.os.Parcelable.Creator
        public Album createFromParcel(Parcel parcel) {
            return new Album(parcel, null);
        }

        /* Return type fixed from 'java.lang.Object[]' to match base method */
        @Override // android.os.Parcelable.Creator
        public Album[] newArray(int i) {
            return new Album[i];
        }
    }

    public Album(String str, Uri uri, String str2, long j) {
        this.f3333 = str;
        this.f3331 = uri;
        this.f3334 = str2;
        this.f3332 = j;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static Album m1903(Cursor cursor) {
        String string = cursor.getString(cursor.getColumnIndex(ShareConstants.MEDIA_URI));
        String string2 = cursor.getString(cursor.getColumnIndex("bucket_id"));
        if (string == null) {
            string = "";
        }
        return new Album(string2, Uri.parse(string), cursor.getString(cursor.getColumnIndex("bucket_display_name")), cursor.getLong(cursor.getColumnIndex("count")));
    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.f3333);
        parcel.writeParcelable(this.f3331, 0);
        parcel.writeString(this.f3334);
        parcel.writeLong(this.f3332);
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public Uri m1904() {
        return this.f3331;
    }

    /* renamed from: ඓ  reason: contains not printable characters */
    public boolean m1905() {
        return f3330.equals(this.f3333);
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public long m1906() {
        return this.f3332;
    }

    /* renamed from: 㴹  reason: contains not printable characters */
    public boolean m1909() {
        return this.f3332 == 0;
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public String m1910() {
        return this.f3333;
    }

    public /* synthetic */ Album(Parcel parcel, C0564 k) {
        this.f3333 = parcel.readString();
        this.f3331 = (Uri) parcel.readParcelable(Uri.class.getClassLoader());
        this.f3334 = parcel.readString();
        this.f3332 = parcel.readLong();
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m1908() {
        this.f3332++;
    }

    /* renamed from: K  reason: contains not printable characters */
    public String m1907(Context context) {
        if (m1905()) {
            return context.getString(R$string.album_name_all);
        }
        return this.f3334;
    }
}
