Add: Favorites category

This commit is contained in:
machiav3lli
2022-08-03 01:37:34 +02:00
parent 4a665df1f5
commit 5ed61120dd
5 changed files with 13 additions and 0 deletions

View File

@@ -10,6 +10,12 @@ sealed class Section : KParcelable {
val CREATOR = KParcelable.creator { All }
}
object FAVORITE : Section() {
@Suppress("unused")
@JvmField
val CREATOR = KParcelable.creator { FAVORITE }
}
data class Category(val name: String) : Section() {
override fun writeToParcel(dest: Parcel, flags: Int) {
dest.writeString(name)