Merge pull request #425 from DavidDengHui/patch-1

Fix MainActivity.kt
pull/442/head
李宗英 2 years ago committed by GitHub
commit 426839c747
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      app/src/main/java/com/lizongying/mytv/MainActivity.kt

@ -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"
} }
} }

Loading…
Cancel
Save