From d63f0694280018ee470f2ba91665c6a9dca3a209 Mon Sep 17 00:00:00 2001 From: xiao_wine Date: Thu, 13 Jun 2024 21:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA=20app=5Fru?= =?UTF-8?q?les.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle.kts | 2 +- app/src/main/assets/app_rules.json | 2 +- app/src/main/java/cn/lyric/getter/config/Config.kt | 1 - .../lyric/getter/ui/fragment/AppRulesFragment.kt | 14 ++++++-------- app/src/main/res/values-zh/strings.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e676ef9..2bf73c7 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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") { diff --git a/app/src/main/assets/app_rules.json b/app/src/main/assets/app_rules.json index 4cc40cc..cbd6d76 100644 --- a/app/src/main/assets/app_rules.json +++ b/app/src/main/assets/app_rules.json @@ -495,6 +495,6 @@ ] } ], - "appRulesVersion": 7, + "appRulesVersion": 8, "version": 6 } diff --git a/app/src/main/java/cn/lyric/getter/config/Config.kt b/app/src/main/java/cn/lyric/getter/config/Config.kt index 5022255..59a6c6c 100644 --- a/app/src/main/java/cn/lyric/getter/config/Config.kt +++ b/app/src/main/java/cn/lyric/getter/config/Config.kt @@ -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) diff --git a/app/src/main/java/cn/lyric/getter/ui/fragment/AppRulesFragment.kt b/app/src/main/java/cn/lyric/getter/ui/fragment/AppRulesFragment.kt index 02ffa57..058e792 100644 --- a/app/src/main/java/cn/lyric/getter/ui/fragment/AppRulesFragment.kt +++ b/app/src/main/java/cn/lyric/getter/ui/fragment/AppRulesFragment.kt @@ -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 { diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index d61f6b9..bebefb7 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -66,7 +66,7 @@ 桌面歌词模式 强制模式 当前状态 - App支持列表仅供查看支持软件版本\n与实际获取可能有部分出入 + App支持列表仅供查看支持软件版本\n与实际获取可能有部分出入\n实际Hook获取歌词并不会参考此页面数据 通知 椒盐/糖醋音乐使用魅族状态栏歌词接口 在API模式正常时,不建议切换 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9dc6710..17873c3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -66,7 +66,7 @@ Desktop Lyrics Mode Enforced Mode Current Status - App support list is only for viewing supported software versions\nThere may be some discrepancies with the actual acquisition + 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 Notice Salt/Sweet and Sour Music uses Meizu status bar lyrics interface It is not recommended to switch when the API mode is normal