Commit 94527ea4 authored by Mygod's avatar Mygod

Refine #1497

parent 9259789f
......@@ -35,7 +35,7 @@ class Settings(bundle: Bundle?) {
fun fromIntent(intent: Intent) = Settings(intent.getBundleExtra(ApiIntent.EXTRA_BUNDLE))
}
var switchOn: Boolean = bundle?.getBoolean(KEY_SWITCH_ON, true) ?: false
var switchOn: Boolean = bundle?.getBoolean(KEY_SWITCH_ON, true) ?: true
var profileId: Int = bundle?.getInt(KEY_PROFILE_ID, -1) ?: -1
fun toIntent(context: Context): Intent {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment