am 49e2efc0
: am ad280a9b
: Merge "Revert "Tapping a connected Bluetooth device now presents its settings dialog."" into lmp-dev
* commit '49e2efc0f74d5ff0a8ec942e5fb3f04bb5f6ab0e': Revert "Tapping a connected Bluetooth device now presents its settings dialog."
This commit is contained in:
@@ -56,8 +56,6 @@ public final class BluetoothDevicePreference extends Preference implements
|
||||
|
||||
private AlertDialog mDisconnectDialog;
|
||||
|
||||
private View mView;
|
||||
|
||||
public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) {
|
||||
super(context);
|
||||
|
||||
@@ -142,7 +140,6 @@ public final class BluetoothDevicePreference extends Preference implements
|
||||
}
|
||||
}
|
||||
|
||||
mView = view;
|
||||
super.onBindView(view);
|
||||
}
|
||||
|
||||
@@ -182,10 +179,7 @@ public final class BluetoothDevicePreference extends Preference implements
|
||||
int bondState = mCachedDevice.getBondState();
|
||||
|
||||
if (mCachedDevice.isConnected()) {
|
||||
if (mOnSettingsClickListener != null) {
|
||||
mView.setTag(mCachedDevice);
|
||||
mOnSettingsClickListener.onClick(mView);
|
||||
}
|
||||
askDisconnect();
|
||||
} else if (bondState == BluetoothDevice.BOND_BONDED) {
|
||||
mCachedDevice.connect(true);
|
||||
} else if (bondState == BluetoothDevice.BOND_NONE) {
|
||||
|
Reference in New Issue
Block a user