diff options
author | Samuel Holland <samuel@sholland.org> | 2017-08-07 19:55:11 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-08-07 19:55:11 -0500 |
commit | 01524c0dbfe944015be59f76e6dcbf0f76e44931 (patch) | |
tree | dc15b1f7bdbf699b196b319097c5aa9f55a6d934 /app/src/main/res | |
parent | 7d3e79684204e8df60eaf8d3985c22317f6594ef (diff) |
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>
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/profile_list_fragment.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/res/layout/profile_list_fragment.xml b/app/src/main/res/layout/profile_list_fragment.xml index 29ce62e7..c0edd444 100644 --- a/app/src/main/res/layout/profile_list_fragment.xml +++ b/app/src/main/res/layout/profile_list_fragment.xml @@ -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 |