From 634bb805bb96584501dc4db6abf9da95185fbe89 Mon Sep 17 00:00:00 2001 From: Stefan Andonian Date: Thu, 26 Oct 2023 20:26:08 +0000 Subject: [PATCH] Do DbMigration if coming from a DB w/ version < 31 This was the issue that is causing the launcher to crash when changing a grid layout. The migration is not happening, causing there to be 21 columns in the database. When the grid size changes, and the db from grid size X is migrated to a db of grid size Y, the column count isn't matching. Bug: 304687723 Test: Verified behavior through unit test. Change-Id: I2ee1f2fe09db432715b22c41581a77f6b0ac8320 --- src/com/android/launcher3/model/DatabaseHelper.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/com/android/launcher3/model/DatabaseHelper.java b/src/com/android/launcher3/model/DatabaseHelper.java index 8167b97818..13605101e7 100644 --- a/src/com/android/launcher3/model/DatabaseHelper.java +++ b/src/com/android/launcher3/model/DatabaseHelper.java @@ -269,7 +269,6 @@ public class DatabaseHelper extends NoLocaleSQLiteHelper implements Favorites.CONTAINER, Favorites.CONTAINER_DESKTOP, Favorites.CELLY, 0), null); } - return; } case 31: { LauncherDbUtils.migrateLegacyShortcuts(mContext, db);