Merge "Fix incorrect hstsEnforced lookup"

This commit is contained in:
Chad Brubaker
2015-11-07 02:37:45 +00:00
committed by Gerrit Code Review

View File

@@ -233,7 +233,7 @@ public final class NetworkSecurityConfig {
public NetworkSecurityConfig build() {
boolean cleartextPermitted = getEffectiveCleartextTrafficPermitted();
boolean hstsEnforced = getEffectiveCleartextTrafficPermitted();
boolean hstsEnforced = getEffectiveHstsEnforced();
PinSet pinSet = getEffectivePinSet();
List<CertificatesEntryRef> entryRefs = getEffectiveCertificatesEntryRefs();
return new NetworkSecurityConfig(cleartextPermitted, hstsEnforced, pinSet, entryRefs);