Commit cfe5a45c authored by Mygod's avatar Mygod

Fix lateinit

parent 15d7d2ca
......@@ -201,10 +201,10 @@ class MainPreferenceFragment : LeanbackPreferenceFragment(), ShadowsocksConnecti
true
}
tester = ViewModelProviders.of(activity as FragmentActivity).get()
changeState(BaseService.IDLE) // reset everything to init state
connection.connect()
DataStore.publicStore.registerChangeListener(this)
tester = ViewModelProviders.of(activity as FragmentActivity).get()
}
override fun onStart() {
......
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