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:
Jeff Sharkey
2016-03-21 13:12:59 -06:00
parent 082ceb1679
commit f28f2820ab

View File

@@ -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() {
return mMatchRule;
}