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

Commit d454c3c2 authored by Lucas Lin's avatar Lucas Lin Committed by android-build-merger
Browse files

Merge "Prevent SIGN_IN notification pop up several times"

am: 83152b1e

Change-Id: I85a37f7bd74feae235befb53cda0a5ff100805e4
parents 070e3413 83152b1e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -779,6 +779,7 @@ public class NetworkMonitor extends StateMachine {

        @Override
        public void exit() {
            mLaunchCaptivePortalAppBroadcastReceiver = null;
            hideProvisioningNotification();
        }
    }
@@ -902,9 +903,10 @@ public class NetworkMonitor extends StateMachine {
                mLaunchCaptivePortalAppBroadcastReceiver = new CustomIntentReceiver(
                        ACTION_LAUNCH_CAPTIVE_PORTAL_APP, new Random().nextInt(),
                        CMD_LAUNCH_CAPTIVE_PORTAL_APP);
            }
                // Display the sign in notification.
                // Only do this once for every time we enter MaybeNotifyState. b/122164725
                showProvisioningNotification(mLaunchCaptivePortalAppBroadcastReceiver.mAction);
            }
            // Retest for captive portal occasionally.
            sendMessageDelayed(CMD_CAPTIVE_PORTAL_RECHECK, 0 /* no UID */,
                    CAPTIVE_PORTAL_REEVALUATE_DELAY_MS);