am 132b2144
: Disable the individual remote Bluetooth devices when BT is off
Merge commit '132b21440b1b930322fc129a504afa6107835f8e' * commit '132b21440b1b930322fc129a504afa6107835f8e': Disable the individual remote Bluetooth devices when BT is off
This commit is contained in:
committed by
The Android Open Source Project
commit
f9bdcb6c26
@@ -104,6 +104,9 @@ public class BluetoothDevicePreference extends Preference implements LocalBlueto
|
|||||||
protected void onBindView(View view) {
|
protected void onBindView(View view) {
|
||||||
super.onBindView(view);
|
super.onBindView(view);
|
||||||
|
|
||||||
|
// Disable this view if the bluetooth enable/disable preference view is off
|
||||||
|
setDependency("bt_checkbox");
|
||||||
|
|
||||||
ImageView btClass = (ImageView) view.findViewById(R.id.btClass);
|
ImageView btClass = (ImageView) view.findViewById(R.id.btClass);
|
||||||
btClass.setImageResource(mLocalDevice.getBtClassDrawable());
|
btClass.setImageResource(mLocalDevice.getBtClassDrawable());
|
||||||
btClass.setAlpha(isEnabled() ? 255 : sDimAlpha);
|
btClass.setAlpha(isEnabled() ? 255 : sDimAlpha);
|
||||||
|
Reference in New Issue
Block a user