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