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

Commit 8a5ed7df authored by Sundeep Ghuman's avatar Sundeep Ghuman Committed by android-build-merger
Browse files

Merge "Force update wifi QS when opening." into oc-dr1-dev am: 0e9d9420

am: 23a490e2

Change-Id: I7b1cc393cc098752b2df5bfbe3158c51ec23481c
parents 568771cf 23a490e2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -314,12 +314,10 @@ public class WifiTile extends QSTileImpl<SignalState> {
        public View createDetailView(Context context, View convertView, ViewGroup parent) {
            if (DEBUG) Log.d(TAG, "createDetailView convertView=" + (convertView != null));
            mAccessPoints = null;
            mWifiController.scanForAccessPoints();
            fireScanStateChanged(true);
            mItems = QSDetailItems.convertOrInflate(context, convertView, parent);
            mItems.setTagSuffix("Wifi");
            mItems.setCallback(this);
            updateItems();
            mWifiController.scanForAccessPoints(); // updates APs and items
            setItemsVisible(mState.value);
            return mItems;
        }
+3 −2
Original line number Diff line number Diff line
@@ -97,8 +97,9 @@ public class AccessPointControllerImpl

    @Override
    public void scanForAccessPoints() {
        if (DEBUG) Log.d(TAG, "scan!");
        mWifiTracker.forceScan();
        if (DEBUG) Log.d(TAG, "force update APs!");
        mWifiTracker.forceUpdate();
        fireAcccessPointsCallback(mWifiTracker.getAccessPoints());
    }

    @Override