Commit 1a9fd998 authored by Mygod's avatar Mygod

Fix fab after import

parent 89987ab1
...@@ -192,6 +192,7 @@ class MainPreferenceFragment : LeanbackPreferenceFragment(), ShadowsocksConnecti ...@@ -192,6 +192,7 @@ class MainPreferenceFragment : LeanbackPreferenceFragment(), ShadowsocksConnecti
private fun populateProfiles() { private fun populateProfiles() {
ProfileManager.ensureNotEmpty() ProfileManager.ensureNotEmpty()
val profiles = ProfileManager.getAllProfiles()!! val profiles = ProfileManager.getAllProfiles()!!
fab.value = null
fab.entries = profiles.map { it.formattedName }.toTypedArray() fab.entries = profiles.map { it.formattedName }.toTypedArray()
fab.entryValues = profiles.map { it.id.toString() }.toTypedArray() fab.entryValues = profiles.map { it.id.toString() }.toTypedArray()
} }
......
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