Save BottomSheet state when screen rotate

- Save BottomSheet state in onSaveInstanceState
- When Settings starts from saved state, we don't need to
  add fragment. Because FragmentManager already contains
  fragment instance.
- Fix status bar color

Change-Id: Ic8779b8253040554409e735bd57bd9001c1d56fd
Fixes: 112428378
Test: make RunSettingsRoboTests
This commit is contained in:
Raff Tsai
2018-08-13 13:37:42 +08:00
parent 237f80b0aa
commit 11b17a7e11
3 changed files with 50 additions and 26 deletions

View File

@@ -171,6 +171,7 @@
<item name="colorPrimaryDark">@*android:color/primary_dark_device_default_settings_light</item>
<item name="colorAccent">@*android:color/accent_device_default_light</item>
<item name="preferenceTheme">@style/PreferenceTheme</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<!--TODO(b/111875856) This theme will be useless, when we add real activity/fragment to handle the full screen for WifiDialog -->