OSDN Git Service

Fixing wrong check for grid migration
authorSunny Goyal <sunnygoyal@google.com>
Wed, 15 Feb 2017 22:41:35 +0000 (14:41 -0800)
committerSunny Goyal <sunnygoyal@google.com>
Wed, 15 Feb 2017 22:42:47 +0000 (14:42 -0800)
Change-Id: I0475512302fd185fcd984d032cf19b34df3f8840

src/com/android/launcher3/model/GridSizeMigrationTask.java

index bbc7ae4..221798b 100644 (file)
@@ -900,7 +900,7 @@ public class GridSizeMigrationTask {
         String gridSizeString = getPointString(idp.numColumns, idp.numRows);
 
         if (gridSizeString.equals(prefs.getString(KEY_MIGRATION_SRC_WORKSPACE_SIZE, "")) &&
-                idp.numHotseatIcons != prefs.getInt(KEY_MIGRATION_SRC_HOTSEAT_COUNT, idp.numHotseatIcons)) {
+                idp.numHotseatIcons == prefs.getInt(KEY_MIGRATION_SRC_HOTSEAT_COUNT, idp.numHotseatIcons)) {
             // Skip if workspace and hotseat sizes have not changed.
             return true;
         }