summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2019-11-23 11:35:49 +0100
committerLuK1337 <priv.luk@gmail.com>2019-11-23 12:48:13 +0100
commitc1f21bf30cee5512114cdbf22447a254ff4035b4 (patch)
tree6f2c02b24e2fd8656699bde94abd14eb80263248
parent5e7e70989a1aa1262d29d8fdbabc81c7b29837b4 (diff)
downloadandroid_packages_apps_Trebuchet-c1f21bf30cee5512114cdbf22447a254ff4035b4.tar.gz
android_packages_apps_Trebuchet-c1f21bf30cee5512114cdbf22447a254ff4035b4.tar.bz2
android_packages_apps_Trebuchet-c1f21bf30cee5512114cdbf22447a254ff4035b4.zip
Don't discard custom grid on config changes
Change-Id: Ibfa2eafec50c9fe79d1e9594ddc68fb5266ecb18
-rw-r--r--src/com/android/launcher3/InvariantDeviceProfile.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/launcher3/InvariantDeviceProfile.java b/src/com/android/launcher3/InvariantDeviceProfile.java
index bde87cb50..8a8a2fbe5 100644
--- a/src/com/android/launcher3/InvariantDeviceProfile.java
+++ b/src/com/android/launcher3/InvariantDeviceProfile.java
@@ -288,9 +288,7 @@ public class InvariantDeviceProfile {
InvariantDeviceProfile oldProfile = new InvariantDeviceProfile(this);
// Re-init grid
- // 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);
+ initGrid(context, Utilities.getPrefs(context).getString(KEY_IDP_GRID_NAME, null));
int changeFlags = 0;
if (numRows != oldProfile.numRows ||