Merge "Also disable main content if switch is disabled" into main
This commit is contained in:
@@ -294,6 +294,7 @@ class DeviceDetailsFragmentFormatterImpl(
|
||||
TwoTargetSwitchPreference(
|
||||
switchPrefModel,
|
||||
primaryOnClick = { triggerAction(model.action) },
|
||||
primaryEnabled = { !model.disabled }
|
||||
)
|
||||
} else {
|
||||
SwitchPreference(switchPrefModel)
|
||||
|
||||
Reference in New Issue
Block a user