diff options
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/com/wireguard/android/ProfileService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/ProfileService.java b/app/src/main/java/com/wireguard/android/ProfileService.java index a459dba5..8925fb50 100644 --- a/app/src/main/java/com/wireguard/android/ProfileService.java +++ b/app/src/main/java/com/wireguard/android/ProfileService.java @@ -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 |