Browse Source

ProfileService: Use deep copy to clone profiles

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
undefined
Samuel Holland 7 years ago
parent
commit
0ea5ae605c
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/src/main/java/com/wireguard/android/ProfileService.java

+ 3
- 1
app/src/main/java/com/wireguard/android/ProfileService.java View File

@@ -90,7 +90,9 @@ public class ProfileService extends Service {

@Override
public Profile copyProfileForEditing(Profile profile) {
return null;
if (!profiles.contains(profile))
return null;
return profile.copy();
}

@Override


Loading…
Cancel
Save