Merge "Saving instance state so that widget cache is updated properly before rebind" into ub-launcher3-qt-dev

am: 98cf5545e5

Change-Id: I4123cb3049d0d2b4d2a83ccfb4194b9e6d29ae2a
This commit is contained in:
Sunny Goyal
2019-06-12 11:33:47 -07:00
committed by android-build-merger
+3
View File
@@ -466,6 +466,9 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
reapplyUi();
mDragLayer.recreateControllers();
// Calling onSaveInstanceState ensures that static cache used by listWidgets is
// initialized properly.
onSaveInstanceState(new Bundle());
// TODO: We can probably avoid rebind when only screen size changed.
rebindModel();
}