Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d4b260e authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by android-build-merger
Browse files

Merge "Re-notify if the network goes to PARTIAL." into qt-dev

am: ad3e86a7

Change-Id: Id6722cc07f8cf2f7bee62e661c1b2478ddd79681
parents 02b0c0e3 ad3e86a7
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2663,6 +2663,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);
                    }