ProfileService: Use deep copy to clone profiles

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Samuel Holland 2017-07-31 21:20:04 -05:00
parent ca708ba382
commit 0ea5ae605c

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