Merge "Also disable main content if switch is disabled" into main

This commit is contained in:
Haijie Hong
2024-11-06 07:05:01 +00:00
committed by Android (Google) Code Review

View File

@@ -294,6 +294,7 @@ class DeviceDetailsFragmentFormatterImpl(
TwoTargetSwitchPreference( TwoTargetSwitchPreference(
switchPrefModel, switchPrefModel,
primaryOnClick = { triggerAction(model.action) }, primaryOnClick = { triggerAction(model.action) },
primaryEnabled = { !model.disabled }
) )
} else { } else {
SwitchPreference(switchPrefModel) SwitchPreference(switchPrefModel)