ProfileService: Use deep copy to clone profiles
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
ca708ba382
commit
0ea5ae605c
@ -90,7 +90,9 @@ public class ProfileService extends Service {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Profile copyProfileForEditing(Profile profile) {
|
public Profile copyProfileForEditing(Profile profile) {
|
||||||
return null;
|
if (!profiles.contains(profile))
|
||||||
|
return null;
|
||||||
|
return profile.copy();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user