ProfileService: Use a map to store profile data
This has no visible changes at the moment, but will allow most functions to pass around strings instead of Profile objects, obviating the need to implement serialization for them. It also trades some naive linear searches for the binary search in SimpleArrayMap. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
1 parent
7d3e796842
commit
01524c0dbf
3 files changed
+17
-18
No files matched your search
@@ -6,7 +6,7 @@
|
||||
|
||||
<variable
|
||||
name="profiles"
|
||||
type="android.databinding.ObservableList<com.wireguard.config.Profile>" />
|
||||
type="android.databinding.ObservableArrayMap<String, com.wireguard.config.Profile>" />
|
||||
</data>
|
||||
|
||||
<ListView
|
||||
|
||||
Reference in new issue
Block a user