Revert "Tapping a connected Bluetooth device now presents its settings dialog."

This reverts commit 893be9cc34.

Change-Id: Idefe6a1972ca1130a687632f74051e5b5a2e54e1
This commit is contained in:
Paul West
2014-08-27 20:31:38 +00:00
parent 893be9cc34
commit c0963dd7c5

View File

@@ -56,8 +56,6 @@ public final class BluetoothDevicePreference extends Preference implements
private AlertDialog mDisconnectDialog; private AlertDialog mDisconnectDialog;
private View mView;
public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) { public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) {
super(context); super(context);
@@ -142,7 +140,6 @@ public final class BluetoothDevicePreference extends Preference implements
} }
} }
mView = view;
super.onBindView(view); super.onBindView(view);
} }
@@ -182,10 +179,7 @@ public final class BluetoothDevicePreference extends Preference implements
int bondState = mCachedDevice.getBondState(); int bondState = mCachedDevice.getBondState();
if (mCachedDevice.isConnected()) { if (mCachedDevice.isConnected()) {
if (mOnSettingsClickListener != null) { askDisconnect();
mView.setTag(mCachedDevice);
mOnSettingsClickListener.onClick(mView);
}
} else if (bondState == BluetoothDevice.BOND_BONDED) { } else if (bondState == BluetoothDevice.BOND_BONDED) {
mCachedDevice.connect(true); mCachedDevice.connect(true);
} else if (bondState == BluetoothDevice.BOND_NONE) { } else if (bondState == BluetoothDevice.BOND_NONE) {