OSDN Git Service

Homescreen migration from a larger grid to a smaller grid.
authorSunny Goyal <sunnygoyal@google.com>
Mon, 27 Jul 2015 21:36:07 +0000 (14:36 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Fri, 31 Jul 2015 19:03:33 +0000 (12:03 -0700)
commite5bb705fb79f18df8680958dcf2c5460e16c90b6
tree33c20c832cf07556ca8d0d3c114489c95190a3f0
parente40e77b34f6521d3caaa8eb49b9e073258e91f56
Homescreen migration from a larger grid to a smaller grid.

Adding support for restoring from a larger device, if the grid size
difference is not more that 1.
During restore add all the items in the DB, and run a one-time migration
the next time launcher starts.

The migration strategy is defined in ShrinkWorkspaceTask.java which involves
resizing, moving and removing some items.

Change-Id: I6ee411f6db5bf0152b527e16146a88c56dec2d97
src/com/android/launcher3/LauncherAppState.java
src/com/android/launcher3/LauncherAppWidgetProviderInfo.java
src/com/android/launcher3/LauncherBackupAgentHelper.java
src/com/android/launcher3/LauncherBackupHelper.java
src/com/android/launcher3/LauncherModel.java
src/com/android/launcher3/LauncherProvider.java
src/com/android/launcher3/LauncherSettings.java
src/com/android/launcher3/model/MigrateFromRestoreTask.java [new file with mode: 0644]