diff options
Diffstat (limited to 'src/com/android/launcher3/provider/LossyScreenMigrationTask.java')
-rw-r--r-- | src/com/android/launcher3/provider/LossyScreenMigrationTask.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/com/android/launcher3/provider/LossyScreenMigrationTask.java b/src/com/android/launcher3/provider/LossyScreenMigrationTask.java index 9166b8358..6d839f352 100644 --- a/src/com/android/launcher3/provider/LossyScreenMigrationTask.java +++ b/src/com/android/launcher3/provider/LossyScreenMigrationTask.java @@ -37,29 +37,21 @@ import java.util.ArrayList; */ public class LossyScreenMigrationTask extends GridSizeMigrationTask { - private final SQLiteDatabase mDb; - private final IntSparseArrayMap<DbEntry> mOriginalItems; private final IntSparseArrayMap<DbEntry> mUpdates; protected LossyScreenMigrationTask( Context context, InvariantDeviceProfile idp, SQLiteDatabase db) { // Decrease the rows count by 1 - super(context, idp, getValidPackages(context), + super(context, db, getValidPackages(context), new Point(idp.numColumns, idp.numRows + 1), new Point(idp.numColumns, idp.numRows)); - mDb = db; mOriginalItems = new IntSparseArrayMap<>(); mUpdates = new IntSparseArrayMap<>(); } @Override - protected Cursor queryWorkspace(String[] columns, String where) { - return mDb.query(Favorites.TABLE_NAME, columns, where, null, null, null, null); - } - - @Override protected void update(DbEntry item) { mUpdates.put(item.id, item.copy()); } |