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

This commit is contained in:
TreeHugger Robot
2019-06-12 18:15:22 +00:00
committed by Android (Google) Code Review
+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();
}