Fix build - This should be SwitchPreference!

(cherry picked from commit 58f70cdf1407d053233b426733996c561e22698a)