Commit 14713352 authored by Mygod's avatar Mygod Committed by Max Lv

Fix fab after import

parent 6d9199ae
...@@ -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