summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Trebuchet : Default workspace improvementsRaj Yengisetty2014-06-131-38/+30
| | | | | | | | | | | | | | 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-2/+8
| | | | | | | | | | | | | | 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
* Fix issue where clings didn't appear after set up wizard (issue 13077829)Adam Cohen2014-06-071-1/+11
| | | | | | | | | | | -> Also removed the db-created as a criteria for showing the clings (this was a bit problematic in some cases and going forward) -> Instead, we use database upgrade as a signal to not show the clings. This is used instead of the above criteria (to prevent old users from seeing the migration cling and losing their data.) -> Stripped some old code related to custom clings that's no longer used. Change-Id: Ib5e5285e5ddbc60e69eb998ee9fd092ae879150d
* handle shortcut restore for missing packagesChris Wren2014-06-071-4/+19
| | | | | Bug: 10778992 Change-Id: I8766b8d4dd9c0269d52a7ec3da58dd408bc5f09f
* Don't lose icons when migrating from different-sized hotseats.Dan Sandler2014-06-061-6/+34
| | | | | | | | | | | | | | | | | | | | | | | | Launcher2 on sw720dp devices had 8 hotseat slots; Launcher3 has only 6 on those same devices. When importing the old hotseat, the empty slot (so technically there were 9) occupied by the all apps button didn't line up with the new all apps button, causing a hole on the hotseat. Furthermore, the icon in old position 3 was clobbered by the new all apps icon: 0 1 2 3 (#) 4 5 6 7 ==> 0 1 2 (:) _ 4 5 In this CL we introduce a separate sort-and-place step for hotseat icons so that any icon colliding with the new all-apps slot can be moved to the right to find the next nearest open slot. This works well for the 8->6 case; it will probably do something reasonable, if not ideal, for other grid migration scenarios. But those are not covered by this bug. Bug: 13015468 Change-Id: I7edb3f27addc78ad02bbfcd1c39175ca56220007
* Do updateWorkspaceScreenOrder inside a single transaction.Yura2014-06-061-0/+17
| | | | | | | | | | | 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
* Adding tighter first run checks for migration clings. (Bug 12626290)Winson Chung2014-06-061-0/+11
| | | | Change-Id: I09fc95c9a3d50ce57f9140e89da2ff4856807f92
* Defend against missing DB during migration.Dan Sandler2014-06-061-2/+4
| | | | | Bug: 12600784 Change-Id: Ie295d2ac970eab798b9826748d400cd30a04662d
* Migration update: ensuring all folders go firstAdam Cohen2014-06-061-25/+50
| | | | | | | | | | | | -> Also, leave the last row empty on every screen -> Fix bug where shortcuts weren't getting moved (introduced in previous CL) -> Only dedupe items directly on the workspace Bug 12416411 Bug 12572727 Change-Id: Id95cc6081c57cc289c2a85b2a6872ee0bf3eb98a
* Don't migrate shortcuts for components that no longer existAdam Cohen2014-06-061-17/+29
| | | | | | Bug 12570791 Change-Id: Ie4b55afcee0c4d1d16acf7b830d7885800943454
* restore app favorites and screensChris Wren2014-06-061-1/+12
| | | | | | | version 0: restore assuming apps are already installed. Bug: 10779035 Change-Id: I7f9aa418a7d3d5460a79a229c0fbc80305b5eb5c
* New launcher2 icon migration algorithm.Dan Sandler2014-06-061-1/+223
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
| | | | | | | | | - 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
* Allow 5 hotseat icons in DISABLE_ALL_APPS mode.Nilesh Agrawal2014-06-061-1/+9
| | | | | | | | Added the xml resource in Launcher3 package as well. This is a dummy resource with just hotseat icons. Previously reviewed on: http://ag/396580 Change-Id: I31b0d7d4796d028f44f746260c381f2d8226605a
* Only import workspaces for non-tablets (where grid hasn't changed)Adam Cohen2014-06-061-1/+8
| | | | Change-Id: I832b6259477d6325c141fddfe9b50cb05aeff8d2
* Revert "Revert "Enable Launcher2 workspace import.""Dan Sandler2014-06-061-1/+1
| | | | | | | | This reverts commit a6a296ba1ffba6c5b98e92f05254f0317f28290b. https://memegen.googleplex.com/5476445807706112 Bug: 9832552
* Revert "Enable Launcher2 workspace import."Dan Sandler2014-06-061-1/+1
| | | | | | | This reverts commit 5b3bdd394e4401d7e91d528ef1d424d1af271d97. Bug: 11768766 Bug: 9832552
* Enable Launcher2 workspace import.Dan Sandler2014-06-061-1/+1
| | | | | Bug: 11800663 Change-Id: I5c8963bde69e667bf726d1f926a913c347294e16
* Disable importing workspaces from Launcher2.Dan Sandler2014-06-061-23/+32
| | | | | | Bug: 9832552 Bug: 11761032 Change-Id: I4dfd16046e9d6d0d1d864dff4340b0ed13cc8b8f
* Adding logs to track down missing workspace screen. (Bug 11683562)Winson Chung2014-06-061-0/+6
| | | | Change-Id: I12ef3331ab81004c75229d33afa0a8dd0fa8521c
* Fix loading widgets in <include>d workspaces.Daniel Sandler2014-06-051-1/+0
| | | | | | | | Resetting the item id was breaking the widget loading code and is totally unnecessary. Bug: 11352675 Change-Id: I2e70e542ecc5d8c0664b674ebdac5d520b71b8a0
* Fix L3 and old Trebuchet migrationRicardo Cerqueira2014-02-011-1/+67
| | | | | | | | | There can only be one original-package tag. Go with com.android.launcher3 for now, and move Trebuchet back to com.cyanogenmod.trebuchet. This will allow for workspace migrations from both CM10.2 Trebuchet and from CM11 Launcher3 Change-Id: I7743954bffc55f503851038f800607947e20015e
* Trebuchet : Default workspace improvementsDanesh M2014-01-301-1/+34
| | | | | | | | Ported from cm-10.2 Adds support for fallback in default_workspace Change-Id: I2590ae2d5e3c1b6124061581b9ffa206d611c608
* Trebuchet: Default workspace fixesJorge Ruesga2014-01-301-2/+13
| | | | | | | | | | | | * Replace AnalogClockWidget by cLock Widget * Add "no telephony" workspaces files. New favorites: - Phone -> Email - Contacts -> Calendar - Mms -> Contacts - Browser -> Browser * Add sw600dp and sw700dp update workspaces files Change-Id: I41e81f908339b68df8109611c88ee092b4ab7b9d
* move the provider authority to a config classChris Wren2013-10-091-2/+2
| | | | | Bug: 10816034 Change-Id: I68364081f039f94205b805a1510eb04e6f0f40a2
* move to backup helper architectureChris Wren2013-10-071-1/+1
| | | | | | | add journals to DecoderRing, for backup debugging Bug: 10778984 Change-Id: I38e93853c05f72468b3800c172b96effc70a63e0
* Add support for <include> in workspace XML.Daniel Sandler2013-10-031-0/+45
| | | | | | | | | | | | Note that this doesn't honor folder nesting (that is, you can't include an XML file full of shortcuts inside a <folder> node and expect them all to appear in that folder). It's really just a way to concatenate/overlay multiple XML files, making it easier to make a few tweaks/additions for certain screen sizes or locales. Bug: 10932771 Change-Id: I1fc29477d0717a8a7bc116f16729a955e6c625d5
* add a backup agent.Chris Wren2013-09-241-3/+35
| | | | | | | | | backup only, restore path is just debugging/verification. todo: restore path todo: additional asset backup for widgets and launcher items Bug: 10778984 Change-Id: I01aed4794a02f03daf21bca28f99cfbea90e4967
* remember the provider path when creating a widget.Chris Wren2013-09-171-2/+20
| | | | | Bug: 10779026 Change-Id: I4f5b619087868a8f637c433c29e3aa6856ccc97d
* Initial Changes for Dynamic GridWinson Chung2013-08-201-10/+0
| | | | Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
* Verifying that new applications are added and fixing issue with new items ↵Winson Chung2013-07-251-40/+115
| | | | | | | | getting wrong ids. - Fixing issue where the LauncherModel would be out of sync on first migration, and subsequent crashes Change-Id: I6f58b09b615b28958c7f941e58ff9ae0ee3ba939
* Lazily instantiate LauncherAppState.Daniel Sandler2013-06-271-3/+3
| | | | | | | | The application context for LauncherAppState is supplied by the application whenever it starts; don't ask for an instance before that. Change-Id: I1ca8ea04238a357a682f79250f08813ead7ae532
* Initial implementation of Shrink-wrapAdam Cohen2013-06-251-23/+101
| | | | Change-Id: If73c7f7ca19ca62ff43134f515584354afef8507
* Move LauncherApplication's state and code to LauncherAppState.Daniel Sandler2013-06-111-4/+4
| | | | | | | | This removes Launcher's static data and other state out of the Application object. Now LauncherApplication (extends Application) exists only to instantiate LauncherAppState. Change-Id: I4e323bd78b77536b92054105536a55c0c2c19ba8
* HACK: temporary upgrade path from com.android.launcher2Adam Cohen2013-06-061-1/+22
| | | | | | | | | -> load old provider -> permute pages -> strip all duplicates from workspace -> add [allapps minus workspaceapps] to apps folder Change-Id: Id319d532c6bf1d78370ecc736e95a9475d831de8
* Launcher2 is now Launcher3.Daniel Sandler2013-06-051-0/+1193
Changes include - moving from com.android.launcher{,2} to com.android.launcher3 - removing wallpapers - new temporary icon Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b