summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherModel.java
Commit message (Collapse)AuthorAgeFilesLines
* Protected Apps: Delay Protected Apps changed reload till onResumeRaj Yengisetty2014-11-111-3/+13
| | | | Change-Id: I54724187c3ab168a3beb0791852a1c842bdbabf9
* Protected Apps:Raj Yengisetty2014-07-101-0/+1
| | | | | | - Fix remove all apps button bug Change-Id: I6029831878923b40f3db1b0dc6cfbd81ccc10d33
* Trebuchet : Default workspace improvementsRaj Yengisetty2014-06-131-69/+82
| | | | | | | | | | | | | | This reverts commit b54b34edd5c87e6d0702793b423b14dc24fb1076 Fix bug for mdpi devices crash loop. Revert requires overlays to know if GSF installed, adding a run time check to load default workspaces. Add in additional overlays per density for new LauncherModel and LauncherProvider 4.4.3 logic. Change-Id: I5709182521e80d273e892eb3310abd68acac95ad
* Protected App [3/3]Raj Yengisetty2014-06-111-8/+27
| | | | | | | | | | | | | | Trebuchet - Protected Apps - Build fixed to work with LOCAL_SDK_VERSION - Fixed adding components to protected folders and adding protected folders to other folders - Fixed issues with EditText for FolderName - Adding support for Settings hooks - Uses Setting's LockPattern for Protected Apps - Add Read from Settings Secure DB (DO NOT WRITE!) - Protecting a folder updates Launcher without restart - Batch send component visibility Change-Id: I41c295e7f2c9abc9b2e77e6e3d39b7ca60d47139
* use restored icon for restored app shortcutsChris Wren2014-06-071-3/+9
| | | | | Bug: 10778992 Change-Id: Ie430a6587d49dc0d78b87b81582c0cef7c281017
* update placeholder on package install or restoreChris Wren2014-06-071-3/+54
| | | | | Bug: 10778992 Change-Id: I3293d8bab8ae0ef49fc5554531bba5bd6f70932c
* handle shortcut restore for missing packagesChris Wren2014-06-071-11/+93
| | | | | Bug: 10778992 Change-Id: I8766b8d4dd9c0269d52a7ec3da58dd408bc5f09f
* Do updateWorkspaceScreenOrder inside a single transaction.Yura2014-06-061-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
* Small refactor to separate adding workspace / all apps itemsAdam Cohen2014-06-061-18/+40
| | | | Change-Id: I06b7bc7f7f0e01696cb9670b8385e5148593e3e0
* Don't migrate shortcuts for components that no longer existAdam Cohen2014-06-061-2/+3
| | | | | | Bug 12570791 Change-Id: Ie4b55afcee0c4d1d16acf7b830d7885800943454
* Tightening migration conditions. (Bug 11973614)Winson Chung2014-06-061-2/+2
| | | | Change-Id: I6d7417b705227472d035f428cbec933cc6dbf2ce
* Adding migration Clings. (Bug 11973614)Winson Chung2014-06-061-1/+10
| | | | | | - Refactoring Launcher cling code out to LauncherClings. Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
* New launcher2 icon migration algorithm.Dan Sandler2014-06-061-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-06-061-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-06-061-7/+21
| | | | | | (Bug 11855584) Change-Id: I983c82a74690a9031d18d456ff43dc8750081871
* Don't load items which exceed the grid boundsAdam Cohen2014-06-061-39/+11
| | | | | | | -> 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
* Size hotseat data structure appropriately.Dan Sandler2014-06-061-1/+1
| | | | | Bug: 12070213 Change-Id: I4df2f4bcc71bb4077c62cae91ed844ea8c43d421
* Bind the workspace synchronously if started on -1 screen.Derek Prothro2014-06-061-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 Chung2014-06-061-2/+3
| | | | | | Change-Id: I7a0e23e16a7546a9612d3406257e15be758d4c52 Signed-off-by: Winson Chung <winsonc@google.com>
* Add guards for restoreInstanceState (issue 11982812)Adam Cohen2014-06-061-1/+1
| | | | Change-Id: Ic4c632a956130ab28843085490dc1badb39b0e8c
* Fix binding problem with no screens (issue 11768766)Adam Cohen2014-06-061-21/+7
| | | | Change-Id: I0a296892d4964913f38bf6d7bd2c2b17e1e0e8e0
* Disable importing workspaces from Launcher2.Dan Sandler2014-06-061-0/+2
| | | | | | Bug: 9832552 Bug: 11761032 Change-Id: I4dfd16046e9d6d0d1d864dff4340b0ed13cc8b8f
* Updating LauncherModel filtering to use screen ids. (Bug 11685286)Winson Chung2014-06-061-23/+30
| | | | | | - Fixes the issue with the current page not synchronously binding Change-Id: I3dfa45cc1777f846c77f3e86059dfb715553e1a3
* Additional logs to track down missing workspace screen. (Bug 11683562)Winson Chung2014-06-061-0/+16
| | | | Change-Id: I4f6b3c3ae07e2069bad01940dfce6bdc9cdb0ae0
* Adding logs to track down missing workspace screen. (Bug 11683562)Winson Chung2014-06-061-0/+14
| | | | Change-Id: I12ef3331ab81004c75229d33afa0a8dd0fa8521c
* Require valid arrays when adding and binding new Apps. (Bug 11627095)Winson Chung2014-06-061-2/+5
| | | | Change-Id: I8f2a4dc70bf376d804885f433ab20064823ebaac
* Uncommenting throw when item not contained in sBgItemsIdMapAdam Cohen2014-06-061-2/+1
| | | | | | -> Improving logging for issue 11580149 Change-Id: I10ce7c4b54a6435302d33bbeba4e8600f69d4920
* Ensuring disabled packages remove all components on the workspace. (Bug ↵Winson Chung2014-06-051-38/+48
| | | | 11172454)
* Lazy load default app icon in LauncherModel. (Bug 11203738)Winson Chung2014-06-051-3/+5
| | | | Change-Id: I397b532f247309de9ae5636b51f125f639966696
* Re-Add hidden-apps settingFlamefire2014-04-221-1/+99
| | | | | | | | | | | | Forward port from CM 10.2 PS3: Don't rename and incorporate changes from Devkota PS4: Update German translation PS5: Remove translations PS7: Hide widgets from widget list PS9: Remove debug output PS11: Rebase Change-Id: Ie06b288e22c2678fb09da1bf42d46922b8319e01
* Trebuchet: fix icons disappearing from the hotseat (dock).lee worrall2014-03-031-3/+4
| | | | | | | | | The "occupied" array for the hotseat should be [numHotseatIcons][1], not [numColumns+1][numRows+1], because numHotseatIcons can be >1 more than numColumns; so the rightmost hotseat icon is lost on restart if, for example, the workspace is 5x5 but there are 7 hotseat icons. Change-Id: If68b5fa3d668302601320cd0cb96498afe4fc200
* Trebuchet : Avoid upgrade paths if ALL_APPS buttonDanesh M2014-02-131-2/+4
| | | Change-Id: I0632760f7c5869940711e711114177cc3e576453
* Trebuchet : default workspaceDanesh M2014-02-061-1/+1
| | | | | | | | | | | | | | | Change default screen to screen 0 (far left screen) to match Launcher3. Clean up default layouts for various device types. Also fix missing layouts for allAppsCling. Update: Replace Books with Hangouts Update: Clean and add non-GMS fallbacks Update: Fix MMS being in sw70-non-telephony Update: Cast checkitemplacement to long Update: Layouts and avoid rounding issues for sw600dp Change-Id: If0c3ad5ffcb8e2ee4b811251c0360f7512c31fdb
* Launcher3 : checkItemPlacement fixesDanesh M2014-01-311-3/+8
| | | | | | | | | | | | This patchset addresses two bugs : 1) Incorrect casting of key causes mismatches 2) On hotseat items 2 and above, the occupied hashmap is populated with the CONTAINER_HOTSEAT key, however if its a new item and its required cell is not already been taken, the code falls through to the workspace checks. Make sure hotseat items are treated separately. Change-Id: I1898c6d688cc428a355fdf062218fcda40da98e4
* Trebuchet : Default workspace improvementsDanesh M2014-01-301-63/+63
| | | | | | | | Ported from cm-10.2 Adds support for fallback in default_workspace Change-Id: I2590ae2d5e3c1b6124061581b9ffa206d611c608
* Trebuchet : Icon pack supportDanesh Mondegarian2014-01-291-1/+1
| | | | | | Icons courtesy of Asher Simonds Change-Id: If64811a5506022135ce772ab749a871dab00fc36
* Hotseat: Movable AllApps buttonNebojsa Cvetkovic2014-01-241-26/+106
| | | | Change-Id: I4273c460392c8329368a23ef6f0d9698f52adfea
* AppsCustomize: Overview panelNebojsa Cvetkovic2014-01-241-8/+15
| | | | Change-Id: I5cfd1183194ee15d8bb18dcd2536a644c9599978
* LauncherModel: Add launch count app comparatorNebojsa Cvetkovic2014-01-241-0/+16
| | | | Change-Id: Ie6481f8ae46a76086e187309bba3cdaafaf86977
* 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