Fix flipped captive portal bit in network conditions bcast.

Bug: 18651036
Change-Id: I191fcafab1fc5ba65be06359da1edc7ca5aabc6a
This commit is contained in:
Jeff Davidson
2014-12-05 16:56:08 -08:00
parent 647b437d07
commit f9fff92d70

View File

@@ -678,7 +678,8 @@ public class NetworkMonitor extends StateMachine {
httpResponseCode = 204;
}
sendNetworkConditionsBroadcast(true /* response received */, httpResponseCode == 204,
sendNetworkConditionsBroadcast(true /* response received */,
httpResponseCode != 204 /* isCaptivePortal */,
requestTimestamp, responseTimestamp);
} catch (IOException e) {
if (DBG) log("Probably not a portal: exception " + e);