summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/wireguard/android/ProfileService.java4
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