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

Commit 0e9d9420 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Force update wifi QS when opening." into oc-dr1-dev

parents a4731177 c09b7f78
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