Merge "Fix flipped captive portal bit in network conditions bcast." into lmp-mr1-dev

This commit is contained in:
Jeff Davidson
2014-12-06 02:06:48 +00:00
committed by Android (Google) Code Review

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);