Revert "fixup! Don't discard custom grid on config changes"
Reason for revert: Not needed after QPR3
This reverts commit cd8fe752335da42592d621b5a61d5cc0cf44c57b.
Change-Id: I93fb1a40a302a5d9ba75cf2be3a6229fbaaa775c
diff --git a/src/com/android/launcher3/InvariantDeviceProfile.java b/src/com/android/launcher3/InvariantDeviceProfile.java
index 9caf7f2..3100f72 100644
--- a/src/com/android/launcher3/InvariantDeviceProfile.java
+++ b/src/com/android/launcher3/InvariantDeviceProfile.java
@@ -497,7 +497,7 @@
// Re-init grid
String gridName = getCurrentGridName(context);
- initGrid(context, LauncherPrefs.getPrefs(context).getString(KEY_IDP_GRID_NAME, gridName));
+ initGrid(context, Utilities.getPrefs(context).getString(KEY_IDP_GRID_NAME, gridName));
boolean modelPropsChanged = !Arrays.equals(oldState, toModelState());
for (OnIDPChangeListener listener : mChangeListeners) {