History log of /packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d70ef242332e766b2c23e3b8bb537dc2d584e9ec 24-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Fixing the hotseat import logic

The import logic following the behavior: Improt everything and force
run GridMigrationTask to automatically remove broken icons.
This logic would fail for hotseat as the replacement happens before
the GridMigrationTask, which will not replace the broken targets
appropriately

The cl changes some logic only for hotseat import
> After import remove any broken icons/empty folders
> When adding default icons, only add as much icons as required. Since
GridMigrationTask uses weights, it sometimes removes imported icon, if
the hotseat size becomes too large.

Bug: 30909630
Change-Id: I6ca1f25dac81649794d81aaf82c3c38d1c918d91
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
a5c8a9eb666da16bc4c9ea4412868e22ace8d1f0 08-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Adding logic to pull in workspace data from another Launcher3 based
provider. This allows OEMs to keep the user's homescreen intact while
changing the default home app package.

Bug: 28536314
Change-Id: Ibebfd7dd33aa2cbd9ca28d2d611dd0a4a5971444
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
f03bd4f5470eed9808a0e6f345de94f4e578ae85 10-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Build fix.

Missed some traces of key-value backup

Change-Id: Ifda94aa27aa53625bfb7ca173c6750c1b2433669
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
eb77aaea8990ede3ba774c7b92d48d098bda0f24 24-May-2016 Sunny Goyal <sunnygoyal@google.com> Removing Key-Value pair backup logic as Launcher now uses full-data backup

Change-Id: I3bbaec2b33afe8c1da3ca1468c7c733cc3194604
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
ec1b1c542ca0648747b3b0bc3fd45922caa8ddaa 22-Jun-2016 Tony Wickham <twickham@google.com> Merge "Add support for launcher shortcuts." into ub-launcher3-calgary
803896767b37e447bcdff7be6b9872612e93b7bf 22-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Fixing bug in GridSizeMigrationTask, where it was not accounting for
an extra space when there is no all-apps icon

Bug: 29569843
Change-Id: Ib768f0d069aed413bd8f4c2aa86ab1d3d657680e
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
bfbf7f9f4a0b300613f0ff27a4eb592d88c08325 19-May-2016 Tony Wickham <twickham@google.com> Add support for launcher shortcuts.

- This CL has no UI but provides the necessary backing for one.
- Adds new item type: ITEM_TYPE_DEEP_SHORTCUT, to distinguish from
ITEM_TYPE_SHORTCUT. We can reconsider these names.
- Adds ShortcutCache, using LruCache for up to 30 dynamic shortcuts
(pinned shortcuts are always cached in a HashMap).
- DeepShortcutManager queries for shortcuts and other things like
pin them. In a future CL it will use the cache, but for now it
simply makes an RPC for all queries.
- LauncherModel maintains counts for pinned shortcuts, pinning and
unpinning when counts reach 1 or 0, respectively.
- LauncherModel maintains a map of components to lists of shortcut ids,
which Launcher gets a copy of after it is changed in the background.
This will allow us to know how many shortcuts an app has immediately,
and query for details as the UI is animating.

Change-Id: Ic526f374dd10d72a261bae67f07f098fca8d8bca
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
bb011dad4e69bec027be1e00d573a3095b318b43 16-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Adding a flag (enabled by default) to remove the all-apps button.

All apps can still be opened by clicking the caret.

Bug: 29398447
Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
a9e2f5abb3c21d9721939c625ffb0caabb34e8d9 10-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Adding a DB update path to handle the QSB position change

> Renamed the id of 1st screen to 0 and making space for the QSB
by running the grid migration task.
> Added a feature flag to easily disable the QSB-in-workspace behavior

Change-Id: Ie3369f0d4433d916e9d6215d414770d4333f3e26
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
da4fe1a6244457f144e0a331cada3ada17157809 27-May-2016 Sunny Goyal <sunnygoyal@google.com> Moving the QSB to the workspace grid.

The QSB will only be resent on the first screen of the workspace
covering the full width of the first row. If will not be movable.
The first screen of the workspace will not be movable.
The searchDropTargetBar no longer contains the QSB (it can be
renamed in aseparate cl).

Refactoring all QSB related logic by moving it to a custom view
inflated only using xml.
Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
ff4ba2d99593ed84963b3f71c555b529dd905835 02-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Refactoring out grid occupancy management in a separate class

Change-Id: I37a830c0f2eb0a0dd4f5fc78fa29127cb18cb3c2
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
1ab22630a0c1e16873eb49d0021e0f3dbec4b0ba 06-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Fixing wrong grid size definitions

Bug: 27958565
Change-Id: Icabc651552bbf6483fedbaeb52745c48d418f9ea
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
2e1efb480a9b77a97cb623d4f5faf6802a417422 04-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Changing the widget loading strategy

Widget is loaded only when the user enters the overview mode and we keep
the list updated as long as the user is in the overview mode. Once the user
leaves the overview mode, we stop responding to widget updates

Bug: 26077457
Change-Id: I9e4904b8f1300bfe0d77e2bc5f59aa6963fad8d1
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
f076eae0cab10f035f7b187c72a680cd220acf1b 11-Jan-2016 Sunny Goyal <sunnygoyal@google.com> Adding support for migrating the grid between any two valid screens sizes.

The grid is migrated in steps where each step consists of at max one column change and at max one row change.
Adding some unit tests for GridMigrationLogic

Bug: 25958224
Change-Id: Ie54e872ea0925cc4c463edbba0a7201d62b373a0
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java
f862a26347b583bd84be22a8ceff4bc13158ec7e 14-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Extending the grid migration logic to handle density changes

For hotseat migratino, we simply drop the items with least weight
If the workspace row/column decreases by 2 or more, we clear the whole workspace

Bug: 25958224
Change-Id: I7131b955023d185ed10955f593184b9238546dc8
/packages/apps/Launcher3/src/com/android/launcher3/model/GridSizeMigrationTask.java