Connect button click handler for bluetooth forget dialog.

Bug: 31761184
Test: manual
Change-Id: I48aac6899cb9a49bf988d3b9e6480dfd6fe0c1c2
This commit is contained in:
Fan Zhang
2016-09-27 15:39:50 -07:00
parent efbe5ec924
commit f8c29641da

View File

@@ -116,7 +116,7 @@ public final class DeviceProfilesSettings extends DialogFragment implements
EditText deviceName = (EditText) mRootView.findViewById(R.id.name);
mCachedDevice.setName(deviceName.getText().toString());
break;
case DialogInterface.BUTTON_NEGATIVE:
case DialogInterface.BUTTON_NEUTRAL:
mCachedDevice.unpair();
com.android.settings.bluetooth.Utils.updateSearchIndex(getContext(),
BluetoothSettings.class.getName(), mCachedDevice.getName(),