Reapply the current state after onCreate

In case of normal restart we were never applying the NORMAL state and
so various state properties didn't start with correct default values.
We generally get insets after start which reapplies the state and
fixes this issue but that is not always the case.

Bug: 126416861
Bug: 118441555
Change-Id: Iaa178556618f8a49197187d0820d8b8afdc73378
This commit is contained in:
Sunny Goyal
2019-03-01 13:13:52 -08:00
parent 7419d8174d
commit bbece869eb
+1
View File
@@ -319,6 +319,7 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
}
}
restoreState(savedInstanceState);
mStateManager.reapplyState();
// We only load the page synchronously if the user rotates (or triggers a
// configuration change) while launcher is in the foreground