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

Commit 515f5c20 authored by Sundeep Ghuman's avatar Sundeep Ghuman Committed by Android (Google) Code Review
Browse files

Merge "Fix tests broken in ag/3574286"

parents 2eea7afe 062bf5a9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -681,7 +681,7 @@ public class WifiTracker implements LifecycleObserver, OnStart, OnStop, OnDestro
        synchronized (mLock) {
            if (!mInternalAccessPoints.isEmpty()) {
                mInternalAccessPoints.clear();
                mListener.onAccessPointsChanged();
                conditionallyNotifyListeners();
            }
        }
    }
@@ -916,7 +916,7 @@ public class WifiTracker implements LifecycleObserver, OnStart, OnStop, OnDestro
    }

    /**
     * Invokes {@link WifiListenerExecutor#onAccessPointsChanged()} if {@link #mStaleScanResults}
     * Invokes {@link WifiListenerExecutor#onAccessPointsChanged()} iif {@link #mStaleScanResults}
     * is false.
     */
    private void conditionallyNotifyListeners() {
@@ -924,6 +924,6 @@ public class WifiTracker implements LifecycleObserver, OnStart, OnStop, OnDestro
            return;
        }

        ThreadUtils.postOnMainThread(() -> mListener.onAccessPointsChanged());
        mListener.onAccessPointsChanged();
    }
}