Fix MainActivity.kt

不知道理解的对不对,第244行好像是打错了?
This commit is contained in:
邓晖 2024-02-14 14:37:07 +08:00 committed by GitHub
parent f76aa37169
commit 86d4081d03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ class MainActivity : FragmentActivity() {
fun saveBootStartup(bootStartup: Boolean) { fun saveBootStartup(bootStartup: Boolean) {
with(sharedPref.edit()) { with(sharedPref.edit()) {
putBoolean(CHANNEL_NUM, channelNum) putBoolean(BOOT_STARTUP, bootStartup)
apply() apply()
} }
this.bootStartup = bootStartup this.bootStartup = bootStartup
@ -537,4 +537,4 @@ class MainActivity : FragmentActivity() {
private const val CHANNEL_NUM = "channel_num" private const val CHANNEL_NUM = "channel_num"
const val BOOT_STARTUP = "boot_startup" const val BOOT_STARTUP = "boot_startup"
} }
} }