Delete WPS settings.
Removes the WPS PIN and Push button settings, all of the strings, and related code. Change-Id: I1c7a35ffc8491c57e07accba9b1b5f5407b01831 Fixes: 72421239 Test: deletes code, robotests
This commit is contained in:
@@ -85,16 +85,12 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
|
||||
private static final String TAG = "WifiSettings";
|
||||
|
||||
/* package */ static final int MENU_ID_WPS_PBC = Menu.FIRST;
|
||||
private static final int MENU_ID_WPS_PIN = Menu.FIRST + 1;
|
||||
private static final int MENU_ID_CONNECT = Menu.FIRST + 6;
|
||||
private static final int MENU_ID_FORGET = Menu.FIRST + 7;
|
||||
private static final int MENU_ID_MODIFY = Menu.FIRST + 8;
|
||||
private static final int MENU_ID_WRITE_NFC = Menu.FIRST + 9;
|
||||
|
||||
public static final int WIFI_DIALOG_ID = 1;
|
||||
/* package */ static final int WPS_PBC_DIALOG_ID = 2;
|
||||
private static final int WPS_PIN_DIALOG_ID = 3;
|
||||
private static final int WRITE_NFC_DIALOG_ID = 6;
|
||||
|
||||
// Instance state keys
|
||||
@@ -459,24 +455,6 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
// If the user is not allowed to configure wifi, do not handle menu selections.
|
||||
if (mIsRestricted) {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (item.getItemId()) {
|
||||
case MENU_ID_WPS_PBC:
|
||||
showDialog(WPS_PBC_DIALOG_ID);
|
||||
return true;
|
||||
case MENU_ID_WPS_PIN:
|
||||
showDialog(WPS_PIN_DIALOG_ID);
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo info) {
|
||||
Preference preference = (Preference) view.getTag();
|
||||
@@ -635,10 +613,6 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
|
||||
mSelectedAccessPoint = mDlgAccessPoint;
|
||||
return mDialog;
|
||||
case WPS_PBC_DIALOG_ID:
|
||||
return new WpsDialog(getActivity(), WpsInfo.PBC);
|
||||
case WPS_PIN_DIALOG_ID:
|
||||
return new WpsDialog(getActivity(), WpsInfo.DISPLAY);
|
||||
case WRITE_NFC_DIALOG_ID:
|
||||
if (mSelectedAccessPoint != null) {
|
||||
mWifiToNfcDialog = new WriteWifiConfigToNfcDialog(
|
||||
@@ -660,10 +634,6 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
switch (dialogId) {
|
||||
case WIFI_DIALOG_ID:
|
||||
return MetricsEvent.DIALOG_WIFI_AP_EDIT;
|
||||
case WPS_PBC_DIALOG_ID:
|
||||
return MetricsEvent.DIALOG_WIFI_PBC;
|
||||
case WPS_PIN_DIALOG_ID:
|
||||
return MetricsEvent.DIALOG_WIFI_PIN;
|
||||
case WRITE_NFC_DIALOG_ID:
|
||||
return MetricsEvent.DIALOG_WIFI_WRITE_NFC;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user