android: Add read-only flag to VpnProfile

This commit is contained in:
Markus Pfeiffer
2024-02-21 12:24:52 +01:00
committed by Tobias Brunner
parent 8e3b921abe
commit 9618c83c03
@@ -48,6 +48,7 @@ public class VpnProfile implements Cloneable
private VpnType mVpnType;
private UUID mUUID;
private long mId = -1;
private boolean mReadOnly;
public enum SelectedAppsHandling
{
@@ -55,7 +56,7 @@ public class VpnProfile implements Cloneable
SELECTED_APPS_EXCLUDE(1),
SELECTED_APPS_ONLY(2);
private Integer mValue;
private final Integer mValue;
SelectedAppsHandling(int value)
{
@@ -331,6 +332,16 @@ public class VpnProfile implements Cloneable
this.mFlags = flags;
}
public boolean isReadOnly()
{
return mReadOnly;
}
public void setReadOnly(boolean readOnly)
{
this.mReadOnly = readOnly;
}
@Override
public String toString()
{