Merge "Saving instance state so that widget cache is updated properly before rebind" into ub-launcher3-qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
98cf5545e5
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user