diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-06 04:04:42 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-06 04:09:30 -0600 |
commit | ff0bb081a0baa6f6a1666429eec613c1ed811566 (patch) | |
tree | c89495b5eeaaa381aa292ed150420cb533495085 /app/src/main/res/layout | |
parent | c73287f64bc575672aed325cc029b26b1cf72202 (diff) |
Convert the list of tunnels to a KeyedObservableList
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/tunnel_list_fragment.xml | 4 | ||||
-rw-r--r-- | app/src/main/res/layout/tunnel_list_item.xml | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/app/src/main/res/layout/tunnel_list_fragment.xml b/app/src/main/res/layout/tunnel_list_fragment.xml index e4923d54..fa489840 100644 --- a/app/src/main/res/layout/tunnel_list_fragment.xml +++ b/app/src/main/res/layout/tunnel_list_fragment.xml @@ -4,13 +4,15 @@ <data> + <import type="com.wireguard.android.model.Tunnel" /> + <variable name="fragment" type="com.wireguard.android.fragment.TunnelListFragment" /> <variable name="tunnels" - type="com.wireguard.android.model.TunnelCollection" /> + type="com.wireguard.android.util.KeyedObservableList<String, Tunnel>" /> </data> <com.commonsware.cwac.crossport.design.widget.CoordinatorLayout diff --git a/app/src/main/res/layout/tunnel_list_item.xml b/app/src/main/res/layout/tunnel_list_item.xml index c8706546..8ae0dd23 100644 --- a/app/src/main/res/layout/tunnel_list_item.xml +++ b/app/src/main/res/layout/tunnel_list_item.xml @@ -4,11 +4,13 @@ <data> + <import type="com.wireguard.android.model.Tunnel" /> + <import type="com.wireguard.android.model.Tunnel.State" /> <variable name="collection" - type="com.wireguard.android.model.TunnelCollection" /> + type="com.wireguard.android.util.KeyedObservableList<String, Tunnel>" /> <variable name="key" |