summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* skip backup if launcher is in a bad stateChris Wren2014-06-061-8/+50
| | | | | Bug: 13153542 Change-Id: I4312ebd200e8e652ef841f54301981c2a486b726
* Revert "Disabled the wallpaper when completely in -1 Now space."Jorim Jaggi2014-06-061-1/+1
| | | | | | | This reverts commit f3a8e8c0bd8b0dbe3991e5ad9d315e6e253e92eb. Bug: 12978354 Change-Id: I11f1eeaab4fad9a2e4acf835144f0b0dc6fac54b
* Implement spring-loading of folders when dragging over.Jorim Jaggi2014-06-065-61/+147
| | | | | Bug: 8912132 Change-Id: Id81889a133e56461df2e20599c4b40020818ba18
* Do updateWorkspaceScreenOrder inside a single transaction.Yura2014-06-062-4/+26
| | | | | | | | | | | 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
* Fix NPE in when dropping from all apps (issue 12917451)Adam Cohen2014-06-061-4/+5
| | | | | | | | | When dropping from all apps, accept drop was returning true if the item was above a folder, however, when it came time to complete the drop, the folder wouldn't accept the item. This can be prevented by increasing the criteria in acceptDrop. Change-Id: Ib644ec45984e8366c33bb674f3d3a76e22ed5160
* Small refactor to separate adding workspace / all apps itemsAdam Cohen2014-06-063-22/+46
| | | | Change-Id: I06b7bc7f7f0e01696cb9670b8385e5148593e3e0
* Ensure we don't call getLayoutDirection() for devices not running JB MR1+. ↵Winson Chung2014-06-061-1/+5
| | | | | | (Bug 12906355) Change-Id: I25115b9529c21d3079f50bc26bad8f846a6fcd3e
* Fix deprecated EMPTY_ARRAY usage (nanoprotos).Mac Duy Hai2014-06-061-2/+2
| | | | | | Newer nanoproto compiler discourages the use of this. Change-Id: Ic27a6d15f2892bb49df3100147c086a2bce20fd4
* Do not show overview when menu pressed on CustomContent screen.Yura2014-06-061-9/+15
| | | | | Bug: 12524591 Change-Id: I2bc0c4d206214d994c9a9e1bd13b42f2e53dba9f
* Fix black flash during rotation of -1 screen with GEL.Derek Prothro2014-06-062-22/+9
| | | | | | | | | | | We need to make sure the custom content is adding synchronously while the rest of the workspace is being created. If we wait for it to be added in a separate run task, we see a black flash during rotation. Also rename a few methods and remove obsolete methods. Bug: 11802691 Change-Id: I3f6500aa1fabe68cef59ad8c764877f954986a99
* Fix bug: Scroll position reported incorrectly to live wallpapersMichael Jurka2014-06-061-2/+22
| | | | | | Bug: 11189265 Change-Id: I410f318df4e43ed13d33889a8158a03438a6174f
* Adding tighter first run checks for migration clings. (Bug 12626290)Winson Chung2014-06-062-1/+13
| | | | Change-Id: I09fc95c9a3d50ce57f9140e89da2ff4856807f92
* Defend against missing DB during migration.Dan Sandler2014-06-061-2/+4
| | | | | Bug: 12600784 Change-Id: Ie295d2ac970eab798b9826748d400cd30a04662d
* Avoid NPE from delayed RunnableIan Parkinson2014-06-061-3/+5
| | | | | | | | | Naive fix to b/12656485. Other Runnables in Launcher similarly check that mWorkspace hasn't become null between being posted and being executed, so I think this is probably appropriate. Bug: 12656485 Change-Id: Ib4f3d0e8686c6249fe838144b1e8120c85f66f01
* Adding specific buckets for N5 in dynamic grid. (Bug 12604220)Winson Chung2014-06-061-3/+5
| | | | Change-Id: I1fa62b7d16f557c7191fb1666d687b8784a88857
* Dismissing search and other overlays when the menu button is pressed. (Bug ↵Winson Chung2014-06-061-1/+10
| | | | 12524591)
* Fix overlapping pages (issue 12551580)Adam Cohen2014-06-061-1/+1
| | | | Change-Id: I03c29c36828b6c4baadb33b13b0e852b07b2d40f
* Disabled the wallpaper when completely in -1 Now space.Selim Cinek2014-06-061-1/+1
| | | | | Bug: 11186234 Change-Id: I6ffb66f12298bd9df7e228a8589d63780b70a396
* Adding new bucket for inbetween phone-tablet layouts. (Bug 11993166)Winson Chung2014-06-061-0/+2
| | | | Change-Id: I01fc54be8059d4cd25ff465c70595683fc8ac019
* Updating Tablet clings. (Bug 11973614)Winson Chung2014-06-064-41/+123
| | | | Change-Id: I6cb10424a345691d50c4fac7969e0b97bbee4b3c
* 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
* Lazy load the widget preview loader classMichael Jurka2014-06-061-12/+15
| | | | | | Bug: 12109621 Change-Id: Id99aded30195bf39ebcf2148611bc4e084f3b2c7
* Don't migrate shortcuts for components that no longer existAdam Cohen2014-06-062-19/+32
| | | | | | Bug 12570791 Change-Id: Ie4b55afcee0c4d1d16acf7b830d7885800943454
* rationalize launcher backup loggingChris Wren2014-06-063-43/+58
| | | | | | | | | enough data to debug dogfood issues easy switch to move to quieter production mode common switch across all three classes Bug: 12545310 Change-Id: Icb4ad7174f20884c6993140149db590d66f6e006
* Fix back button behavior for "App info" when launched by Launcher3.Adrian Roos2014-06-061-1/+2
| | | | | | | Ensures the back stack is clean when opening the "App info" app from the launcher. Bug: 10393223 Change-Id: Iad078ca37c4794a580f1b996f8324fef404e7462
* Tightening migration conditions. (Bug 11973614)Winson Chung2014-06-061-1/+1
| | | | | Change-Id: I6d7417b705227472d035f428cbec933cc6dbf2ce (cherry picked from commit e43a1e788223ab5a4405c5eeb0133ff57efbc768)
* Tightening migration conditions. (Bug 11973614)Winson Chung2014-06-063-22/+57
| | | | Change-Id: I6d7417b705227472d035f428cbec933cc6dbf2ce
* Revert "Workspace: Extra empty screen both left and right"Danesh M2014-06-062-95/+74
| | | | | | This reverts commit d4c825cc639bceae57de6dec2c82d6a7633977f7. Change-Id: I53e036ee56bf7bcd817a01ebc18520021e2b4202
* Remove settings in overview mode for Launcher3.Jorim Jaggi2014-06-062-5/+35
| | | | | | | | | | The appereance of the settings button in overview mode is now dependent on a overridable method, such that we can have it in GEL, but not in Launcher3. This change also adjusts the logic of how wide the overview panel is, depending on how many items we have. Bug: 12441429 Change-Id: Ibf537c26602785f565292cbfa213eb123469ebcd
* Fixing drop targets in phone / small tablet landscape (issue 12192781)Adam Cohen2014-06-063-16/+13
| | | | Change-Id: I4dc8a82c8cd5ef279506e7868e33a455fba5a3be
* Ensure that hasFirstRunActivity is only called when necessaryAdam Cohen2014-06-061-3/+4
| | | | Change-Id: I834abcd82f46c6f096f5c92452b34c668a4a3d86
* search for a valid journalChris Wren2014-06-061-19/+33
| | | | | | | | there are too many bytes, so we need to find the valid subset, without stepping past the end! Bug: 12489602 Change-Id: Ic9d7c804c199740ff50d0864f99632ae68619369
* Fix NPE in Workspace.onDropCompletedJorim Jaggi2014-06-062-1/+11
| | | | | Bug: 11627757 Change-Id: I9dc86856d4bc00253d6350d157be541a8c46888d
* Properly saving migration cling keys.Winson Chung2014-06-061-6/+5
| | | | Change-Id: Id52a12da6af0fc91463dae07bbeb355ee04873d0
* restore app favorites and screensChris Wren2014-06-062-9/+89
| | | | | | | version 0: restore assuming apps are already installed. Bug: 10779035 Change-Id: I7f9aa418a7d3d5460a79a229c0fbc80305b5eb5c
* Fix longpress crash.Dan Sandler2014-06-062-42/+2
| | | | | | | | | | | The AllApps button doesn't usually accept longpresses, but you can trick it into trying by holding one finger on it and another on another icon in the hotseat. This patch defends against that and bails out if the longpressed item has the all apps rank (position in hotseat). Bug: 11740833 Change-Id: I99785ccbc9e6dc6be2a9e56289b3cc0275fbb65c
* hide launcher restore behind a flag.Chris Wren2014-06-063-4/+55
| | | | | | | | enable with 'adb shell settings put secure launcher_restore_enabled 1' before signing into wiped device Bug: 12532845 Change-Id: I1471c39dac2e6e1412f7720b1ba8edf46273c593
* Set App context from WallpaperChanged receiver. (Bug 12525684)Winson Chung2014-06-061-0/+1
| | | | Change-Id: Ie037d74d31e6b05b0ae5bb25ed1bf1c639a28a5f
* backup keys that might have slipped pastChris Wren2014-06-061-4/+6
| | | | | | | seems a little paranoid, but can't hurt. Bug: 12455866 Change-Id: If9da4cc021ee4fac32c822a91fabda69bf3ff8aa
* Updating assets and text for migration cling. (Bug 11973614)Winson Chung2014-06-061-7/+7
| | | | Change-Id: I69ffc1581cc43511b4f42ebb2735afe4c0b44131
* Adding migration Clings. (Bug 11973614)Winson Chung2014-06-069-346/+628
| | | | | | - Refactoring Launcher cling code out to LauncherClings. Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
* New launcher2 icon migration algorithm.Dan Sandler2014-06-063-6/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Quick patch for b/12446428.Dan Sandler2014-06-061-1/+4
| | | | | Bug: 12446428 Change-Id: I5b9472e55a8919f5640c6e97fede9b5637819be0
* Allow DISABLE_ALL_APPS to be set using a system property.Nilesh Agrawal2014-06-0612-29/+109
| | | | | | | | | - 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
* Adding optional first run activity to LauncherAdam Cohen2014-06-063-13/+50
| | | | Change-Id: I146927d8a065f1cf5ef5cec41c8fb4f9ad09d25c
* first backup should save things from the beginning of timeChris Wren2014-06-061-2/+2
| | | | | Bug: 12455866 Change-Id: Ie9a97ed4110e7b1ded21f609179b5d6ee7f0ead5
* Recover when widget preview database is deletedMichael Jurka2014-06-062-21/+55
| | | | | | Bug: 12109621 Change-Id: I8d59700d31d6856d6151b965786c87585801317b
* Accounting for new Package event extras when updating forward-locked apps. ↵Winson Chung2014-06-061-7/+21
| | | | | | (Bug 11855584) Change-Id: I983c82a74690a9031d18d456ff43dc8750081871
* KEYCODE_MENU: hide all apps when entering overview modeDan Sandler2014-06-061-7/+1
| | | | | Bug: 12165618 Change-Id: I7ee652012c7f7b8e6fab3d9d1f99cf22484f3182
* Remove a non-obvious fall through in a switch statement.Mihail Dumitrescu2014-06-061-7/+4
| | | | | | | | | This CL does not modify the result of calling onInterceptHoverEvent() assuming isEventOverFolder() has no side effects. The only change is that isEventOverFolder will now be called once rather than twice when action == MotionEvent.ACTION_HOVER_ENTER and isOverFolder == true. Change-Id: Icc28ab880cf5094e49f51d72035891e924cb2031