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:
@@ -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