summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2019-11-23 11:35:49 +0100
committeralk3pInjection <webmaster@raspii.tech>2022-05-02 09:56:20 +0800
commita24358287badf34251cb852d9643a2560f54d409 (patch)
tree45e6886530d0ff6dd8e592669f1697850039735e
parent53fd495d39db5ca17e12699089c01891b2c83ad8 (diff)
Launcher3: Don't discard custom grid on config changes
Change-Id: Ibfa2eafec50c9fe79d1e9594ddc68fb5266ecb18
-rw-r--r--src/com/android/launcher3/InvariantDeviceProfile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/InvariantDeviceProfile.java b/src/com/android/launcher3/InvariantDeviceProfile.java
index ff7a90cb2c..5d3b5fd166 100644
--- a/src/com/android/launcher3/InvariantDeviceProfile.java
+++ b/src/com/android/launcher3/InvariantDeviceProfile.java
@@ -402,7 +402,7 @@ public class InvariantDeviceProfile {
// Re-init grid
String gridName = getCurrentGridName(context);
- initGrid(context, gridName);
+ initGrid(context, Utilities.getPrefs(context).getString(KEY_IDP_GRID_NAME, gridName));
boolean modelPropsChanged = !Arrays.equals(oldState, toModelState());
for (OnIDPChangeListener listener : mChangeListeners) {