Skip to content

Commit

Permalink
优化提示
Browse files Browse the repository at this point in the history
app_rules.json
  • Loading branch information
xiaowine committed Jun 13, 2024
1 parent 3efea19 commit d63f069
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ android {
buildConfigField("long", "BUILD_TIME", "$buildTime")
buildConfigField("int", "API_VERSION", "6")
buildConfigField("int", "CONFIG_VERSION", "1")
buildConfigField("int", "APP_RULES_API_VERSION", "6")
buildConfigField("int", "APP_RULES_API_VERSION", "8")
}
val config = localProperties.getProperty("androidStoreFile")?.let {
signingConfigs.create("config") {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/assets/app_rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,6 @@
]
}
],
"appRulesVersion": 7,
"appRulesVersion": 8,
"version": 6
}
1 change: 0 additions & 1 deletion app/src/main/java/cn/lyric/getter/config/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class Config {
var enhancedHiddenLyrics: Boolean by serialLazy(false)
var regexReplace: String by serialLazy("")
var saltUseFlyme: Boolean by serialLazy(false)
var isFirstLookRules: Boolean by serialLazy(true)
var updateTime: Long by serialLazy(0L)
var showTitle: Boolean by serialLazy(false)
var stopOption1: Boolean by serialLazy(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,12 @@ class AppRulesFragment : Fragment() {

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
if (config.isFirstLookRules) {
MaterialAlertDialogBuilder(requireContext()).apply {
setTitle(R.string.remarks)
setMessage(R.string.rules_are_only_for_viewing_supported_versions)
setNegativeButton(R.string.ok) { _, _ -> config.isFirstLookRules = false }
setCancelable(false)
show()
}
MaterialAlertDialogBuilder(requireContext()).apply {
setTitle(R.string.remarks)
setMessage(R.string.rules_are_only_for_viewing_supported_versions)
setNegativeButton(R.string.ok) { _, _ -> }
setCancelable(false)
show()
}
appAdapter = AppRulesAdapter().apply {
setOnItemClickListener(object : AppRulesAdapter.OnItemClickListener {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<string name="desktop_lyrics_mode">桌面歌词模式</string>
<string name="enforced_mode">强制模式</string>
<string name="current_status">当前状态</string>
<string name="rules_are_only_for_viewing_supported_versions">App支持列表仅供查看支持软件版本\n与实际获取可能有部分出入</string>
<string name="rules_are_only_for_viewing_supported_versions">App支持列表仅供查看支持软件版本\n与实际获取可能有部分出入\n实际Hook获取歌词并不会参考此页面数据</string>
<string name="notice">通知</string>
<string name="salt_use_flyme">椒盐/糖醋音乐使用魅族状态栏歌词接口</string>
<string name="salt_use_flyme_summary">在API模式正常时,不建议切换</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<string name="desktop_lyrics_mode">Desktop Lyrics Mode</string>
<string name="enforced_mode">Enforced Mode</string>
<string name="current_status">Current Status</string>
<string name="rules_are_only_for_viewing_supported_versions">App support list is only for viewing supported software versions\nThere may be some discrepancies with the actual acquisition</string>
<string name="rules_are_only_for_viewing_supported_versions">App support list is only for viewing supported software versions\nThere may be some discrepancies with the actual acquisition\nThe actual hook fetches the lyrics and does not refer to the data on this page</string>
<string name="notice">Notice</string>
<string name="salt_use_flyme">Salt/Sweet and Sour Music uses Meizu status bar lyrics interface</string>
<string name="salt_use_flyme_summary">It is not recommended to switch when the API mode is normal</string>
Expand Down

0 comments on commit d63f069

Please sign in to comment.