summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherModel.java
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix issue where always trying to migrateJason Monk2014-05-161-7/+10
| | | | | | | | | | Rather than check if the ContentProviderClient is null (which fails in when using the Redirector), check the PackageManager directly for the authority we are looking for. Bug: 14466459 Change-Id: I7420352a15dcea5037196670f18705e7a34f0672
* Removing antiquated migration path logicAdam Cohen2014-05-161-3/+12
| | | | | | -> also added some extra debugging for issue 14466459 Change-Id: I1ac9352c52c15d3e37f945cffabbca49343d2b8f
* check for long and short component names.Chris Wren2014-05-121-2/+4
| | | | | Bug: 14650346 Change-Id: Ic2195a4f60b63f8ec85c42284e0fd58d6f473a9f
* Fix bug with user of shortcut not being remembered over restart.Kenny Guy2014-05-081-2/+2
| | | | | | | | | | | Intent extra was being set as int rather than long so being missed. Also use LauncherApps if neccessary in case where launching without launch animation. Unregister for package notifications when terminating. Bug: 14636181 Change-Id: I1575f6eed806446782092dffe8c01afe7b6507fe
* Watch for profile events and reloadAmith Yamasani2014-05-021-1/+1
| | | | | | | | Reload the workspace and all-apps list when a managed profile is added or removed. Bug: 14484845 Change-Id: I69210c22e568f2a561266ef2846ddf8f6d659070
* Launcher3 multi-profile supportKenny Guy2014-04-301-226/+242
| | | | | | | | | | | | | | | | | | | | | Use LauncherApps API and badging APIs instead of PackageManager. With compatability layer that uses PackageManager pre L. Adds support to show apps from current user and any managed profiles. Background: Managed profiles are user sandboxes that are visible from the primary user and can be launched as if they are a part of this user. A launcher should now be capable of listing apps from this user as well as related profiles of this user. Launching of activities is now via the LauncherApps interface, to allow for cross-profile app launching. Only activities with category LAUNCHER can be added as a shortcut on the workspace for a managed profile. Widgets and non-application shortcuts are only supported for the current profile. Widgets from the managed profile are not available. Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9
* Merge "Add synchronization to DeferredBindRunnables" into ub-now-novaJason Monk2014-04-231-8/+25
|\
| * Add synchronization to DeferredBindRunnablesJason Monk2014-04-221-8/+25
| | | | | | | | | | | | | | | | | | | | Seems that on occasion the list is being iterated on while being modified. To fix this added synchronization to all modifications to the list as well as iterating on a copy of the list to cut down on time holding the lock. Bug: 12885709 Change-Id: I4287bdedbeb8e438b49c1f79b44819a752c28a69
* | am 76ac344c: Merge "Allow the old launcher content URI to be overrided" into ↵Adam Cohen2014-04-181-1/+1
|\ \ | | | | | | | | | | | | | | | | | | ub-now-mister-ugly * commit '76ac344cb61a74267c04249c9e9feec41a82c504': Allow the old launcher content URI to be overrided
| * \ Merge "Allow the old launcher content URI to be overrided" into ↵Adam Cohen2014-04-171-1/+1
| |\ \ | | |/ | |/| | | | ub-now-mister-ugly
| | * Allow the old launcher content URI to be overridedJason Monk2014-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the URI used to import favorites from launcher2 to be loaded from a string resource. This allows it to be overridden. This will enable permissions fix for GoogleSearch. Bug: 12058200 Change-Id: I31243fe89f545c9771d5cceffe1c9e7668a42bc5
* | | additional debug logs to track welcome back behavior.Chris Wren2014-04-161-2/+3
|/ / | | | | | | | | Bug: 13568891 Change-Id: I359202ce59b3444e46331485ea22f542ae908e36
* / Fix missing stack trace on checkItemInfoLocked callJason Monk2014-03-201-1/+2
|/ | | | | | | | | | Just put this change into Launcher2, now adding to Launcher3 The call to checkItemInfoLocked from addItemToDatabase was missing a stack trace so that if the check failed, the stack trace did not contain what triggered the add. Change-Id: Ia2e2aae20b16d4adadfe1da53b49e93073fab55c
* update promise icon statusChris Wren2014-03-111-1/+20
| | | | | | | also fix a crash in LauncherModel.DEBUG_LOADERS Bug: 10778992 Change-Id: Iafc28c1e0c2f2a1283783a7ce27e181634b62993
* Properly releasing ContentProviderClient after LauncherModel check.Winson Chung2014-03-061-2/+6
| | | | Change-Id: I0823ada46661b5ba0c36a0bb9f792969a1d04561
* 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