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

Commit ffa4fba1 authored by Haijie Hong's avatar Haijie Hong
Browse files

Also disable main content if switch is disabled

BUG: 377530027
Test: local test
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I883618919523fea2305858c370390c88511d5a0f
parent 288cb409
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -294,6 +294,7 @@ class DeviceDetailsFragmentFormatterImpl(
            TwoTargetSwitchPreference(
                switchPrefModel,
                primaryOnClick = { triggerAction(model.action) },
                primaryEnabled = { !model.disabled }
            )
        } else {
            SwitchPreference(switchPrefModel)