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

Commit 23a490e2 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

Change-Id: I806437c5034cb8a83e92e0b6e2477619c480e891
parents 65a7bd6c 0e9d9420
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