summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherModel.java
Commit message (Collapse)AuthorAgeFilesLines
* use restored icon for restored app shortcutsChris Wren2014-02-141-3/+9
| | | | | Bug: 10778992 Change-Id: Ie430a6587d49dc0d78b87b81582c0cef7c281017
* Do updateWorkspaceScreenOrder inside a single transaction.Yura2014-02-111-4/+9
| | | | | | | | | | | The workspacescreens table is updated in LauncherModel.updateWorkspaceScreenOrder and that the operation to remove all screens, then reinsert the new list of screens in not inside a single transaction, so if the app is updating or crashes between ContentResolver.delete and ContentResolver.bulkInsert then the data will be lost. This CL makes it all happen inside 1 transaction. Bug: 12523285 Change-Id: I409dbc9f48fa9c8bd4bf3b1453204a4daac1689a
* update placeholder on package install or restoreChris Wren2014-02-061-3/+54
| | | | | Bug: 10778992 Change-Id: I3293d8bab8ae0ef49fc5554531bba5bd6f70932c
* Merge "Small refactor to separate adding workspace / all apps items" into ↵Adam Cohen2014-02-051-18/+40
|\ | | | | | | ub-now-lunchbox
| * Small refactor to separate adding workspace / all apps itemsAdam Cohen2014-02-051-18/+40
| | | | | | | | Change-Id: I06b7bc7f7f0e01696cb9670b8385e5148593e3e0
* | handle shortcut restore for missing packagesChris Wren2014-01-271-11/+93
|/ | | | | Bug: 10778992 Change-Id: I8766b8d4dd9c0269d52a7ec3da58dd408bc5f09f
* Don't migrate shortcuts for components that no longer existAdam Cohen2014-01-151-2/+3
| | | | | | Bug 12570791 Change-Id: Ie4b55afcee0c4d1d16acf7b830d7885800943454
* Tightening migration conditions. (Bug 11973614)Winson Chung2014-01-151-2/+2
| | | | Change-Id: I6d7417b705227472d035f428cbec933cc6dbf2ce
* Merge "Adding migration Clings. (Bug 11973614)" into jb-ub-now-kermitWinson Chung2014-01-101-1/+10
|\
| * Adding migration Clings. (Bug 11973614)Winson Chung2014-01-101-2/+11
| | | | | | | | | | - Refactoring Launcher cling code out to LauncherClings. Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
* | Merge "New launcher2 icon migration algorithm." into jb-ub-now-kermitAdam Cohen2014-01-101-5/+27
|\ \
| * | New launcher2 icon migration algorithm.Dan Sandler2014-01-101-5/+27
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The user will be able to request "icon migration", which is not a direct mapping of the old workspace, but rather follows this heuristic for bringing the user's favorite icons (by dint of their existence on the workspace) into Launcher3: Workspace shortcuts are placed in lexicographic order on the workspace starting at screen 0 (leaving the bottom row of screen 0 empty to make sure there's room to move things around). Folders are preserved and their contents sorted. Duplicate icons (that is, shortcuts with the same intent, pursuant to some cleanups) are removed. Hotseat icons are migrated in their original place, unless their new location is not accommodated by the hotseat (i.e. the L3 hotseat is too small on this device), in which case they're treated like any other shortcut and tossed into the workspace. To test, turn on Launcher.ENABLE_DEBUG_INTENTS and then: $ adb shell am broadcast -a com.android.launcher3.action.DELETE_DATABASE $ adb shell am broadcast -a com.android.launcher3.action.MIGRATE_DATABASE Bug: 12416411 Change-Id: Ia5c56f36c11455867ea20a39f70210f595020a87
* / Allow DISABLE_ALL_APPS to be set using a system property.Nilesh Agrawal2014-01-091-2/+2
|/ | | | | | | | | - Moving the property to LauncherAppState - The property is only read on dogfood builds. The property can be set using setprop or /data/local.prop Change-Id: I14c7354efb12edb93f97e81687a6f920cc634e9a
* Accounting for new Package event extras when updating forward-locked apps. ↵Winson Chung2014-01-081-7/+21
| | | | | | (Bug 11855584) Change-Id: I983c82a74690a9031d18d456ff43dc8750081871
* Clean up importsMichael Jurka2013-12-131-0/+1
|
* Don't load items which exceed the grid boundsAdam Cohen2013-12-111-42/+32
| | | | | | | -> Unified location where this is managed (with other placement verification) -> For now, not deleting out of bounds items, but can turn it on in one line Change-Id: I5e1a5cd357d80475ae40af7b89a0cd372d5c241b
* Merge "Size hotseat data structure appropriately." into jb-ub-now-kermitDan Sandler2013-12-111-8/+16
|\
| * Size hotseat data structure appropriately.Dan Sandler2013-12-101-8/+16
| | | | | | | | | | Bug: 12070213 Change-Id: I4df2f4bcc71bb4077c62cae91ed844ea8c43d421
* | Bind the workspace synchronously if started on -1 screen.Derek Prothro2013-12-101-8/+11
|/ | | | | | | | | Previously, LoaderTask would be run asynchronously to bind the workspace when started on -1 which would cause the user's wallpaper to briefly flash when rotating the device on -1. Bug: 11802691 Change-Id: I3a1a7a32fa28a81e041a283a93d808d5a8884133
* Fixing crash in empty folders. (Bug 11627191)Winson Chung2013-12-091-2/+3
| | | | | | Change-Id: I7a0e23e16a7546a9612d3406257e15be758d4c52 Signed-off-by: Winson Chung <winsonc@google.com>
* Revert "Fixing crash in empty folders. (Bug 11627191)"Winson Chung2013-12-101-3/+2
| | | | | | This reverts commit 68b667848ef7c6f69b24a40d780e4088a5f2a1fb. Change-Id: I51da495d6f8ef98b268c23cce02cce5ef1c7ea00
* Fixing crash in empty folders. (Bug 11627191)Winson Chung2013-12-091-2/+3
| | | | Change-Id: I7a0e23e16a7546a9612d3406257e15be758d4c52
* Add guards for restoreInstanceState (issue 11982812)Adam Cohen2013-12-031-1/+1
| | | | Change-Id: Ic4c632a956130ab28843085490dc1badb39b0e8c
* Fix binding problem with no screens (issue 11768766)Adam Cohen2013-11-271-21/+7
| | | | Change-Id: I0a296892d4964913f38bf6d7bd2c2b17e1e0e8e0
* Disable importing workspaces from Launcher2.Dan Sandler2013-11-191-0/+2
| | | | | Bug: 9832552 Bug: 11761032 Change-Id: I4dfd16046e9d6d0d1d864dff4340b0ed13cc8b8f
* Updating LauncherModel filtering to use screen ids. (Bug 11685286)Winson Chung2013-11-151-23/+30
| | | | | | - Fixes the issue with the current page not synchronously binding Change-Id: I3dfa45cc1777f846c77f3e86059dfb715553e1a3
* Merge "Additional logs to track down missing workspace screen. (Bug ↵Winson Chung2013-11-151-0/+16
|\ | | | | | | 11683562)" into jb-ub-now-jolly-elf
| * Additional logs to track down missing workspace screen. (Bug 11683562)Winson Chung2013-11-151-0/+16
| | | | | | | | Change-Id: I4f6b3c3ae07e2069bad01940dfce6bdc9cdb0ae0
* | Merge "Adding logs to track down missing workspace screen. (Bug 11683562)" ↵Winson Chung2013-11-151-0/+14
|\| | | | | | | into jb-ub-now-jolly-elf
| * Adding logs to track down missing workspace screen. (Bug 11683562)Winson Chung2013-11-151-0/+14
| | | | | | | | Change-Id: I12ef3331ab81004c75229d33afa0a8dd0fa8521c
* | Require valid arrays when adding and binding new Apps. (Bug 11627095)Winson Chung2013-11-141-2/+5
|/ | | | Change-Id: I8f2a4dc70bf376d804885f433ab20064823ebaac
* Uncommenting throw when item not contained in sBgItemsIdMapAdam Cohen2013-11-081-2/+1
| | | | | | -> Improving logging for issue 11580149 Change-Id: I10ce7c4b54a6435302d33bbeba4e8600f69d4920
* Ensuring disabled packages remove all components on the workspace. (Bug ↵Winson Chung2013-10-161-38/+48
| | | | 11172454)
* Lazy load default app icon in LauncherModel. (Bug 11203738)Winson Chung2013-10-161-3/+5
| | | | Change-Id: I397b532f247309de9ae5636b51f125f639966696
* move the provider authority to a config classChris Wren2013-10-091-0/+1
| | | | | Bug: 10816034 Change-Id: I68364081f039f94205b805a1510eb04e6f0f40a2
* Fixing issue with numerous empty screens showing when adding a shortcut to a ↵Winson Chung2013-10-031-2/+4
| | | | | | clear workspace. (Bug 10785413) Change-Id: Ib9b5f76dc23e609b1774147a6cf760f185d9154b
* Add a better app filtering mechanism and filter widgetsBjorn Bringert2013-10-031-8/+5
| | | | | | | | | | | The old one didn't use the app filter when packages were added or updated, only in the initial load. The app filter is now also used for appwidget providers. Bug: 10895858 Bug: 10898990 Change-Id: Id29bbc3cf7bdb0c360edd92f768b86684bd338ed
* Ensuring that we always update the container when modifying an item in the ↵Winson Chung2013-09-301-0/+1
| | | | | | db. (Bug 11008354) Change-Id: I82748565c878a212bdef1bffbf21f2a3fea09314
* Integrating some aosp fixes, ensuring that we update the install queue ↵Winson Chung2013-09-261-6/+13
| | | | | | | | | | | before returning to Launcher. - Fixing stuck page in All Apps (Bug 9347818) - Fixing shortcuts to uninstalled apps from being installed (Bug 10726510) - Consolidating vibration feedback - Ensuring that we trim names during comparison in AllApps list Change-Id: Ieaae4d85851ce771283b4684a8a60306da28cb3b
* Recover when reading corrupted widget previewsMichael Jurka2013-09-261-2/+2
| | | | Bug: 10785722
* Restoring INSTALL_SHORTCUT receiver (Bug. 10343529)Winson Chung2013-09-251-18/+25
| | | | Change-Id: Icd6a97c1d7877241aa9c71bd80dfdbe6e44ca7ee
* Removing any overlapping items with the hotseat.Winson Chung2013-09-251-7/+31
| | | | Change-Id: I9634939e6b1e8905d232d5a30608e2c56071d7bc
* Removing old debugging logs. (Bug 107442854)Winson Chung2013-09-191-114/+2
| | | | Change-Id: I56d6838af3cca710eab300d3e71ca1be90866cdd
* fixup missing providers on load.Chris Wren2013-09-181-0/+14
| | | | | Bug: 10779026 Change-Id: I0a9fc43258623c233c7ba89a9e9f1dee97800967
* Fixing issue with folders not showing up.Winson Chung2013-09-131-4/+1
| | | | | | | | - Add long click on empty spaces in hotseat to show overview mode - Limit the height of all apps to the workspace + hotseat size - Fixing some comments Change-Id: Ie5a97a8b04e449385e2b3f6230079aebf8e15d5a
* Allow Launcher class to hide activities from All AppsBjorn Bringert2013-09-061-3/+9
| | | | | | | | | There are a few questions for the launcher team embedded in comments. Bug: 10645210 Bug: 10551568 Change-Id: I67ad10da0d0f0f0885f8b14d329231c37aa6779b
* Fix crash when setting wallpaperMichael Jurka2013-09-051-2/+0
| | | | | Also clean up some unused code Change-Id: Ibef8d3d594cc859a993640fd6ee578e9eeb633d1
* Initial changes to restore AllApps.Winson Chung2013-09-051-14/+18
| | | | | | | - Removes unused all apps code due to dynamic grid/spacing - Attempts to use CellLayout instead of PagedViewCellLayout Change-Id: I3c49bca9fc35dfeaf250591fd63bc7f36119968f
* Merge "Fixing issue where shortcuts to standard android intents were getting ↵Winson Chung2013-09-041-2/+2
|\ | | | | | | pruned." into jb-ub-gel-agar
| * Fixing issue where shortcuts to standard android intents were getting pruned.Winson Chung2013-08-301-2/+2
| | | | | | | | Change-Id: Ie5b83f0240a72813e33d528b62f74e69c3807d55