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:
@@ -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