Merge "Skip sanitizing location info for Null Barring CID"

This commit is contained in:
Nathan Harold
2020-02-04 01:22:51 +00:00
committed by Android (Google) Code Review

View File

@@ -324,6 +324,9 @@ public final class BarringInfo implements Parcelable {
/** @hide */
@SystemApi
public @NonNull BarringInfo createLocationInfoSanitizedCopy() {
// The only thing that would need sanitizing is the CellIdentity
if (mCellIdentity == null) return this;
return new BarringInfo(mCellIdentity.sanitizeLocationInfo(), mBarringServiceInfos);
}