When user rotates the device in location settings, the swtich bar with "Use Location" is gone. This change fixes the problem. Also, remove override getInitialExpandedChildCount() in LocationSettings. We will use nested PreferenceCategory instead once the support is ready. Bug: 73872033 Bug: 70843646 Test: Manual Change-Id: I343b549398ef2b3d64ca7962b5f2a4ef0441c7f5