summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-07 19:55:11 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-07 19:55:11 -0500
commit01524c0dbfe944015be59f76e6dcbf0f76e44931 (patch)
treedc15b1f7bdbf699b196b319097c5aa9f55a6d934 /app/src/main/res
parent7d3e79684204e8df60eaf8d3985c22317f6594ef (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.xml2
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&lt;com.wireguard.config.Profile&gt;" />
+ type="android.databinding.ObservableArrayMap&lt;String, com.wireguard.config.Profile&gt;" />
</data>
<ListView