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

Commit 062bf5a9 authored by Sundeep Ghuman's avatar Sundeep Ghuman
Browse files

Fix tests broken in ag/3574286

Changes made during review process broke a test, and this was not caught
via presubmits. Fixing now.

Bug: 68030053
Test: runtest --path
              frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java

Change-Id: I7ce84c7cd1653966beb8980250e64a590def7fc9
parent 06db5f72
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();
    }
}