diff options
author | Samuel Holland <samuel@sholland.org> | 2017-08-17 02:43:15 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-08-17 02:43:15 -0500 |
commit | 25412e05377dabf5aa02bf5adb894fff3d9b7cb1 (patch) | |
tree | a9f2cd663f5abf308d85af40fa24dfd7b845dd11 /app/src/main/java/com/wireguard/android/VpnService.java | |
parent | 97149fff3f867e25103c632138468010cc804811 (diff) |
Convert to using the ObservableTreeMap and its adapter
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java/com/wireguard/android/VpnService.java')
-rw-r--r-- | app/src/main/java/com/wireguard/android/VpnService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/VpnService.java b/app/src/main/java/com/wireguard/android/VpnService.java index fd2aadc3..35d54255 100644 --- a/app/src/main/java/com/wireguard/android/VpnService.java +++ b/app/src/main/java/com/wireguard/android/VpnService.java @@ -41,7 +41,7 @@ public class VpnService extends Service } private final IBinder binder = new Binder(); - private final ObservableArrayMap<String, Config> configurations = new ObservableArrayMap<>(); + private final ObservableTreeMap<String, Config> configurations = new ObservableTreeMap<>(); private final Set<String> enabledConfigs = new HashSet<>(); private SharedPreferences preferences; private Config primaryConfig; @@ -103,7 +103,7 @@ public class VpnService extends Service * * @return The set of known configurations. */ - public ObservableArrayMap<String, Config> getConfigs() { + public ObservableSortedMap<String, Config> getConfigs() { return configurations; } |