Fix MainSwitchPreference crash on Android L

Bug: 312871533
Test: manual
Change-Id: I7d1c1b52c4de670a415330a57a5545020c72521b
3 files changed