|
@@ -16,6 +16,8 @@ import androidx.compose.ui.platform.LocalConfiguration
|
|
|
import eu.kanade.presentation.components.TabbedDialog
|
|
|
import eu.kanade.presentation.components.TabbedDialogPaddings
|
|
|
import eu.kanade.tachiyomi.ui.library.LibrarySettingsScreenModel
|
|
|
+import eu.kanade.tachiyomi.util.system.isDevFlavor
|
|
|
+import eu.kanade.tachiyomi.util.system.isPreviewBuildType
|
|
|
import kotlinx.collections.immutable.persistentListOf
|
|
|
import tachiyomi.core.preference.TriState
|
|
|
import tachiyomi.domain.category.model.Category
|
|
@@ -110,7 +112,11 @@ private fun ColumnScope.FilterPage(
|
|
|
state = filterCompleted,
|
|
|
onClick = { screenModel.toggleFilter(LibraryPreferences::filterCompleted) },
|
|
|
)
|
|
|
- if (LibraryPreferences.MANGA_OUTSIDE_RELEASE_PERIOD in autoUpdateMangaRestrictions) {
|
|
|
+ // TODO: re-enable when custom intervals are ready for stable
|
|
|
+ if (
|
|
|
+ (isDevFlavor || isPreviewBuildType) &&
|
|
|
+ LibraryPreferences.MANGA_OUTSIDE_RELEASE_PERIOD in autoUpdateMangaRestrictions
|
|
|
+ ) {
|
|
|
val filterIntervalCustom by screenModel.libraryPreferences.filterIntervalCustom().collectAsState()
|
|
|
TriStateItem(
|
|
|
label = stringResource(MR.strings.action_filter_interval_custom),
|