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
private fun populateProfiles() {
ProfileManager.ensureNotEmpty()
val profiles = ProfileManager.getAllProfiles()!!
fab.value = null
fab.entries = profiles.map { it.formattedName }.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