Skip to content

Commit

Permalink
Add MediaSelectorSettings.AllVisible for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Sep 21, 2024
1 parent 2a5ec3a commit 6319b81
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright (C) 2024 OpenAni and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license, which can be found at the following link.
*
* https://github.com/open-ani/ani/blob/main/LICENSE
*/

package me.him188.ani.app.data.models.preference

import androidx.compose.runtime.Immutable
Expand Down Expand Up @@ -48,5 +57,14 @@ constructor(
val Default = MediaSelectorSettings(
preferKind = MediaSourceKind.WEB, // 新用户
)

/**
* 用于测试, 显示所有 media
*/
@Stable
@Suppress("DEPRECATION_ERROR")
val AllVisible = Default.copy(
hideSingleEpisodeForCompleted = false,
)
}
}

0 comments on commit 6319b81

Please sign in to comment.