manager: Modify the Show KPM function to hidden and update the related settings.

This commit is contained in:
ShirkNeko
2025-06-03 15:26:03 +08:00
parent ec0b26a174
commit 675bb20f52
8 changed files with 13 additions and 13 deletions

View File

@@ -39,7 +39,7 @@ class MainActivity : ComponentActivity() {
data class SettingsState(
val isHideOtherInfo: Boolean = false,
val showKpmInfo: Boolean = true
val showKpmInfo: Boolean = false
)
private lateinit var themeChangeObserver: ThemeChangeContentObserver

View File

@@ -86,7 +86,7 @@ class HomeViewModel : ViewModel() {
private set
var isHideLinkCard by mutableStateOf(false)
private set
var showKpmInfo by mutableStateOf(true)
var showKpmInfo by mutableStateOf(false)
private set
fun loadUserSettings(context: Context) {
@@ -97,7 +97,7 @@ class HomeViewModel : ViewModel() {
isHideOtherInfo = prefs.getBoolean("is_hide_other_info", false)
isHideSusfsStatus = prefs.getBoolean("is_hide_susfs_status", false)
isHideLinkCard = prefs.getBoolean("is_hide_link_card", false)
showKpmInfo = prefs.getBoolean("show_kpm_info", true)
showKpmInfo = prefs.getBoolean("show_kpm_info", false)
}
}