|
|
|
@ -1,6 +1,5 @@
|
|
|
|
package org.koitharu.kotatsu.history.domain
|
|
|
|
package org.koitharu.kotatsu.history.domain
|
|
|
|
|
|
|
|
|
|
|
|
import org.koitharu.kotatsu.R
|
|
|
|
|
|
|
|
import org.koitharu.kotatsu.core.os.NetworkState
|
|
|
|
import org.koitharu.kotatsu.core.os.NetworkState
|
|
|
|
import org.koitharu.kotatsu.core.prefs.AppSettings
|
|
|
|
import org.koitharu.kotatsu.core.prefs.AppSettings
|
|
|
|
import org.koitharu.kotatsu.history.data.HistoryRepository
|
|
|
|
import org.koitharu.kotatsu.history.data.HistoryRepository
|
|
|
|
@ -25,14 +24,7 @@ class HistoryListQuickFilter @Inject constructor(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
add(ListFilterOption.Macro.COMPLETED)
|
|
|
|
add(ListFilterOption.Macro.COMPLETED)
|
|
|
|
add(ListFilterOption.Macro.FAVORITE)
|
|
|
|
add(ListFilterOption.Macro.FAVORITE)
|
|
|
|
add(
|
|
|
|
add(ListFilterOption.NOT_FAVORITE)
|
|
|
|
ListFilterOption.Inverted(
|
|
|
|
|
|
|
|
option = ListFilterOption.Macro.FAVORITE,
|
|
|
|
|
|
|
|
iconResId = R.drawable.ic_heart_off,
|
|
|
|
|
|
|
|
titleResId = R.string.not_in_favorites,
|
|
|
|
|
|
|
|
titleText = null,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
if (!settings.isNsfwContentDisabled && !settings.isHistoryExcludeNsfw) {
|
|
|
|
if (!settings.isNsfwContentDisabled && !settings.isHistoryExcludeNsfw) {
|
|
|
|
add(ListFilterOption.Macro.NSFW)
|
|
|
|
add(ListFilterOption.Macro.NSFW)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|