Merge "Re-notify if the network goes to PARTIAL." am: 94851761a8 am: 58d4e7304c
am: df84643d9b
Change-Id: If3c568a486fdaf5bbbde33676144379670e2aacd
This commit is contained in:
@@ -2661,6 +2661,17 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
NetworkAgent.CMD_REPORT_NETWORK_STATUS,
|
||||
(valid ? NetworkAgent.VALID_NETWORK : NetworkAgent.INVALID_NETWORK),
|
||||
0, redirectUrlBundle);
|
||||
|
||||
// If NetworkMonitor detects partial connectivity before
|
||||
// EVENT_PROMPT_UNVALIDATED arrives, show the partial connectivity notification
|
||||
// immediately. Re-notify partial connectivity silently if no internet
|
||||
// notification already there.
|
||||
if (!wasPartial && nai.partialConnectivity) {
|
||||
// Remove delayed message if there is a pending message.
|
||||
mHandler.removeMessages(EVENT_PROMPT_UNVALIDATED, nai.network);
|
||||
handlePromptUnvalidated(nai.network);
|
||||
}
|
||||
|
||||
if (wasValidated && !nai.lastValidated) {
|
||||
handleNetworkUnvalidated(nai);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user