android: Add read-only flag to VpnProfile
This commit is contained in:
committed by
Tobias Brunner
parent
8e3b921abe
commit
9618c83c03
+12
-1
@@ -48,6 +48,7 @@ public class VpnProfile implements Cloneable
|
|||||||
private VpnType mVpnType;
|
private VpnType mVpnType;
|
||||||
private UUID mUUID;
|
private UUID mUUID;
|
||||||
private long mId = -1;
|
private long mId = -1;
|
||||||
|
private boolean mReadOnly;
|
||||||
|
|
||||||
public enum SelectedAppsHandling
|
public enum SelectedAppsHandling
|
||||||
{
|
{
|
||||||
@@ -55,7 +56,7 @@ public class VpnProfile implements Cloneable
|
|||||||
SELECTED_APPS_EXCLUDE(1),
|
SELECTED_APPS_EXCLUDE(1),
|
||||||
SELECTED_APPS_ONLY(2);
|
SELECTED_APPS_ONLY(2);
|
||||||
|
|
||||||
private Integer mValue;
|
private final Integer mValue;
|
||||||
|
|
||||||
SelectedAppsHandling(int value)
|
SelectedAppsHandling(int value)
|
||||||
{
|
{
|
||||||
@@ -331,6 +332,16 @@ public class VpnProfile implements Cloneable
|
|||||||
this.mFlags = flags;
|
this.mFlags = flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isReadOnly()
|
||||||
|
{
|
||||||
|
return mReadOnly;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReadOnly(boolean readOnly)
|
||||||
|
{
|
||||||
|
this.mReadOnly = readOnly;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user