Merge "Fix bug where changing the display size does not update the launcher grid." into ub-launcher3-qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-29 19:33:58 +00:00
committed by Android (Google) Code Review
@@ -288,7 +288,9 @@ public class InvariantDeviceProfile {
InvariantDeviceProfile oldProfile = new InvariantDeviceProfile(this);
// Re-init grid
initGrid(context, Utilities.getPrefs(context).getString(KEY_IDP_GRID_NAME, null));
// TODO(b/131867841): We pass in null here so that we can calculate the closest profile
// without the bias of the grid name.
initGrid(context, null);
int changeFlags = 0;
if (numRows != oldProfile.numRows ||