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

Commit eb21975e authored by David Su's avatar David Su Committed by Android (Google) Code Review
Browse files

Merge "Rename removeDoubleQuotes to sanitizeSsid"

parents 5676b6fe 6c6e77ed
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ public class NetworkRequestDialogActivity extends FragmentActivity implements
                mMatchedConfig = WifiUtils.getWifiConfig(
                    null /* accesspoint */, scanResults.get(0), null /* password */);
                showSingleSsidRequestDialog(
                    WifiInfo.removeDoubleQuotes(mMatchedConfig.SSID), false /* isTryAgain */);
                        WifiInfo.sanitizeSsid(mMatchedConfig.SSID), false /* isTryAgain */);
            }
            return;
        }
@@ -207,8 +207,8 @@ public class NetworkRequestDialogActivity extends FragmentActivity implements
    @Override
    public void onUserSelectionConnectSuccess(WifiConfiguration wificonfiguration) {
        if (!isFinishing()) {
            Toast.makeText(this, R.string.network_connection_connect_successful,
                Toast.LENGTH_SHORT).show();
            Toast.makeText(this, R.string.network_connection_connect_successful, Toast.LENGTH_SHORT)
                    .show();
            setResult(RESULT_OK);
            finish();
        }
@@ -218,7 +218,7 @@ public class NetworkRequestDialogActivity extends FragmentActivity implements
    public void onUserSelectionConnectFailure(WifiConfiguration wificonfiguration) {
        if (mIsSpecifiedSsid) {
            showSingleSsidRequestDialog(
                WifiInfo.removeDoubleQuotes(mMatchedConfig.SSID), true /* isTryAgain */);
                    WifiInfo.sanitizeSsid(mMatchedConfig.SSID), true /* isTryAgain */);
            return;
        }

+1 −1
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ public final class WifiNoInternetDialog extends AlertActivity implements
        }
        mNetworkName = nc.getSSID();
        if (mNetworkName != null) {
            mNetworkName = WifiInfo.removeDoubleQuotes(mNetworkName);
            mNetworkName = WifiInfo.sanitizeSsid(mNetworkName);
        }

        createDialog();
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ public final class WifiSummaryUpdater extends SummaryUpdater {
        if (!mWifiTracker.connected) {
            return mContext.getString(R.string.disconnected);
        }
        String ssid = WifiInfo.removeDoubleQuotes(mWifiTracker.ssid);
        String ssid = WifiInfo.sanitizeSsid(mWifiTracker.ssid);
        if (TextUtils.isEmpty(mWifiTracker.statusLabel)) {
            return ssid;
        }
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ public class ContextualWifiSlice extends WifiSlice {
        if (mWifiManager.getWifiState() != WifiManager.WIFI_STATE_ENABLED) {
            return WifiManager.UNKNOWN_SSID;
        }
        return WifiInfo.removeDoubleQuotes(mWifiManager.getConnectionInfo().getSSID());
        return WifiInfo.sanitizeSsid(mWifiManager.getConnectionInfo().getSSID());
    }

    private boolean hasInternetAccess() {
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ public class WifiScanWorker extends SliceBackgroundWorker<AccessPoint> implement
    }

    static boolean isWifiClicked(WifiInfo info) {
        final String ssid = WifiInfo.removeDoubleQuotes(info.getSSID());
        final String ssid = WifiInfo.sanitizeSsid(info.getSSID());
        return !TextUtils.isEmpty(ssid) && TextUtils.equals(ssid, sClickedWifiSsid);
    }