Ignore wildcard network policies.
They never should have been persisted to disk in the first place. Bug: 24972775 Change-Id: If9254f74455823f9fda9545fdf543fc7250a4016
This commit is contained in:
@@ -250,6 +250,16 @@ public class NetworkTemplate implements Parcelable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isPersistable() {
|
||||||
|
switch (mMatchRule) {
|
||||||
|
case MATCH_MOBILE_WILDCARD:
|
||||||
|
case MATCH_WIFI_WILDCARD:
|
||||||
|
return false;
|
||||||
|
default:
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public int getMatchRule() {
|
public int getMatchRule() {
|
||||||
return mMatchRule;
|
return mMatchRule;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user