Merge \"Make Preference#setVisible safer to call\" into nyc-support-24.1-dev
am: a7bfcb2881

Change-Id: I99cd8fd345a2fefce9a2d1ba1a497361775e9576