Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 132b2144 authored by Michael Chan's avatar Michael Chan
Browse files

Disable the individual remote Bluetooth devices when BT is off

parent e5b9e4bd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -104,6 +104,9 @@ public class BluetoothDevicePreference extends Preference implements LocalBlueto
    protected void onBindView(View 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);
        btClass.setImageResource(mLocalDevice.getBtClassDrawable());
        btClass.setAlpha(isEnabled() ? 255 : sDimAlpha);