summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | Trebuchet: fix uninstall app from shortcutJorge Ruesga2013-03-043-1/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When uninstalling an app from a shortcut, there are 2 incorrect cases: 1.- If the user proceeds with the uninstall process, all the shortcuts references are removed from the workspace, except the one used to start that process, because the shortcut is removed from the workspace, but not from the favorites database. A reboot of the device will restore the shortcut into the workspace again. 2.- If the user cancels the uninstall process, the shortcut used is not restored, because it was removed in the drag&drop process. This change restore the shortcut prior to start the uninstall process. For restoring the shortcuts the patchset verifies 3 conditions: 1.- If the shortcut was in the desktop, the shortcut is restored in the same position. 2.- If the shortcut was contained by a folder with one or two shortcuts, then the folder is removed in the darg&drop, so the folder is recreated in the same location, and all its shortcuts are restored 3.- If the shortcut was contained by a folder with more than 2 shortcuts, the shortcut is restored in the same folder. If the user proceeds with the uninstall process then as the shortcut is present in the workspace, the shortcut will be removed. Change-Id: I95e2684d01cabd0d5a04f17c896c72cad2b14d38 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* | Launcher: Fixes to overflow menu buttoncm-10.1-M2Nebojsa Cvetkovic2013-03-031-3/+6
|/ | | | Change-Id: I9b224f66bc25c721db1cd2dd53b397d72c21986e
* Improve scroll responsiveness.Bhargav Upperla2013-03-031-44/+50
| | | | | | | | | | | | | | | | | | 1) mUsePagingTouchSlop set to false. Applist scroll now scrolls with the same thresholds used by homescreen scrolling. 2) Early start of scroll as soon as we detect that it's okay to scroll. Eliminates waiting for next vsync and starts scrolling in the current cycle. instead of the next. Above changes help in reducing first touch to first displacement latencies in scroll usecases. Improves scroll responsiveness. Change-Id: Ib45a361b9b6275e64d0a5b5603aa15fdd386a5f8
* Launcher: Fix overflow menu buttonJorge Ruesga2013-03-031-17/+5
| | | | | | | | | | | | | | | | | | | | | | | | On rotate screen, at all apps drawer in Trebuchet, the overflow menu icon overlays the market icon. This changes contains: 1.- Modify the app_customize_pane layout to avoid that overflow button and market button overlap each other. 2.- Move updateOverflowMenuButton() from runNewAppsAnimation to bindAllApplications. The overflow button need to be updated every time the all app drawer change. 3.- Fix preferencesVisible assignment. If we are in CM and launcher is Trebuchet and device has not permanent button, the overflow menu should be displayed. 4.- Fix onCreateOptionsMenu. On AllAppsVisible the menu should be recreated always 5.- Buttons padding (market and overflow) are reduced to avoid a bad visual effect when both buttons are one beside the other. Before: https://www.dropbox.com/s/i9vgp6sh35nsnjt/before_phone_portrait.png After: https://www.dropbox.com/s/es5j35ny1jf9ey8/after_phone_portrait.png https://www.dropbox.com/s/6sztai1hq0w9ngr/after_phone_landscape.png Patchset 2: Remove unnecessary invalidateOptionsMenu() call Change-Id: I7ec08ff00ed4705846c0b46639965899b16a143d Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* trebuchet: Avoid NPE on startupSteve Kondik2013-02-151-2/+4
| | | | | | | The workspaces are now inflated before the LauncherView, so defer wallpaper initialization until later. Change-Id: I8b939ec217e73b4a7c2b14434479982e24315c74
* Merge tag 'android-4.2.2_r1' of ↵Steve Kondik2013-02-158-263/+511
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/packages/apps/Launcher2 into treb Android 4.2.2 release 1 Conflicts: res/layout-land/launcher.xml res/layout-port/launcher.xml res/layout-sw720dp/launcher.xml src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java src/com/cyanogenmod/trebuchet/AppsCustomizeTabHost.java src/com/cyanogenmod/trebuchet/CellLayout.java src/com/cyanogenmod/trebuchet/Launcher.java src/com/cyanogenmod/trebuchet/PagedView.java Change-Id: I415138430337bcd21070b815a80de9c0cdd52239
| * Fixing issue where the cling is offset. (Bug 7633074)Winson Chung2012-11-293-6/+12
| | | | | | | | | | | | - Also fixing issue where the workspace cling was showing on top of AllApps when you entered it for the first time. Change-Id: I7d59ad153de192bc1d69537af1b4af632465138b
| * Fixing NPE in updateCurrentPageScroll (Bug 7465970)Winson Chung2012-11-261-3/+7
| | | | | | | | Change-Id: I71d2b01518f3f736f6787ff6a503271b9ea7b04b
| * Merge "Fix janky transition on All Apps tab switch" into jb-mr1.1-devMichael Jurka2012-11-211-2/+7
| |\
| | * Fix janky transition on All Apps tab switchMichael Jurka2012-11-191-2/+7
| | | | | | | | | Bug: 7139562
| * | Merge "Refactoring push reordering (issue 7139335)" into jb-mr1.1-devAdam Cohen2012-11-191-155/+366
| |\ \ | | |/ | |/|
| | * Refactoring push reordering (issue 7139335)Adam Cohen2012-11-191-155/+366
| | | | | | | | | | | | | | | | | | | | | | | | | | | -> This new approach is actually correct in emulating cascaded pushing of items left, right, up and down. -> Takes care of a couple crashes and some instances where reordering was not doing the right thing. Change-Id: I016120e62f5d6fa1a2a6289c3badcb6ec230b2a3
| * | Fix StrictMode violationMichael Jurka2012-11-191-18/+10
| | | | | | | | | | | | | | | | | | | | | | | | Switching how we set a property to tell launcher to force rotation to be enabled, or to dump state. Bug: 7538629 Change-Id: I8cb55f1a28ba59fe5d410562c66bc86eb9efabfe
| * | Fix NPEMichael Jurka2012-11-161-0/+4
| | | | | | | | | Bug: 7441452
| * | Extend background to full screen.Craig Mautner2012-11-162-8/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gradient and black backgrounds were stopping at the Status Bar. When returning from a full screen app to the launcher the wallpaper was completely visible when it should have been obscured by these backgrounds. Making the app full screen while keeping the views within the system insets fixes this. Bug 7410717 fixed. Change-Id: If3f7e4808961ee6c80fe2d0a328e6ca39fa5eb7a
| * | Merge "Cleaning up unused code" into jb-mr1.1-devMichael Jurka2012-11-164-5/+0
| |\ \
| | * | Cleaning up unused codeMichael Jurka2012-11-154-5/+0
| | |/
| * / Updating wallpaper picker icon to higher resMichael Jurka2012-11-131-1/+1
| |/ | | | | | | Bug: 7400295 Change-Id: I2c7625ee1ce09ded57d884c229f155ebcf39be07
* | PagedView: Prevent NPEScott Brady2013-01-271-2/+2
| | | | | | | | Change-Id: Ic8f0e1b5a5800c6da13feda2255b79b3ece852e6
* | Reload launcher on expanded desktopJesús David2013-01-261-0/+11
| | | | | | | | Change-Id: Ia8a1e61de79e3fa6dbadad826b0bc2844368c86b
* | Merge "ShortcutInfo: Don't assume all stringified items have a title" into ↵Ricardo Cerqueira2013-01-261-1/+1
|\ \ | | | | | | | | | | | | | | | cm-10.1 Change-Id: I2bf5cee3b69c71cbfd021b8fbc6f59eb881cdbeb
| * | ShortcutInfo: Don't assume all stringified items have a titleRicardo Cerqueira2013-01-261-1/+1
|/ / | | | | | | | | | | | | | | | | | | Changes to some activities (some removals due to missing apps or layout changes, for instance) result in icon updates for items without a title. Attempting to stringify the item object in order to log the update and assuming a title was present was resulting in a NPE Change-Id: I414bbb7feaf41d13a82c630a5652a3833b12a2fc
* | DeleteDropTarget: Fix ghost allapps buttonnebkat2013-01-241-0/+1
| | | | | | | | Change-Id: Idbd70100be2a47539fc399073d1f4f049c81c03b
* | Revert "Preferences: Koush steals yachts"cm-10.1-M1Buga Dániel2013-01-141-17/+0
| | | | | | | | | | | | This reverts commit 1671eead0b0c5e02092ffef784a7dea21062eda0 Change-Id: Ia4f4030e5c7b862a66d917a62400da7e9971d8aa
* | Revert "Preferences: Remove useless log"Ricardo Cerqueira2013-01-141-0/+1
| | | | | | | | This reverts commit bed0cb333eacab68fbc0f3c2b5463abb1fc267cb.
* | Workspace: Fix wallpaper offset landscapenebkat2013-01-081-5/+1
| | | | | | | | Change-Id: I3b283efbe69f68fd088154b9ed2fe59ceb3336ac
* | Workspace: Default wallpaper hacknebkat2013-01-062-3/+4
| | | | | | | | | | | | | | Some devices have slow GPUs and to not work well with normal wallpaper rendering. Allow this to be overlayed by devices. Change-Id: Id8ba50b2542d38abbbdc635105860281ad3e09f5
* | Workspace: Remove resize any widget preferencenebkat2013-01-063-27/+7
| | | | | | | | Change-Id: Ia8876584e008d359bfecc85412ea03f8d7bb450f
* | Merge "Workspace: Only show hotseat outlines if hovering over" into cm-10.1nebkat2013-01-061-1/+2
|\ \
| * | Workspace: Only show hotseat outlines if hovering overnebkat2013-01-061-1/+2
| | | | | | | | | | | | Change-Id: Ib5b3373cec6d54f6136fca6a1a6663c1fe93ef9b
* | | Merge "CellLayout: Use default and target cell counts" into cm-10.1nebkat2013-01-061-2/+2
|\| |
| * | CellLayout: Use default and target cell countsnebkat2013-01-061-2/+2
| | | | | | | | | | | | Change-Id: I586a9ca0c5272a85f03bfe7d58f1b4371aba9034
* | | Remove drop target text in landscapeRobert Burns2013-01-043-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Vertical text currently has wrapping issues and is unnecessary - Text was being shown on all tablet devices Screenshot of wrapping issue: https://docs.google.com/file/d/0B9gh9VnHidOdOWdUdHdrY0VQdEE/edit Change-Id: Ibcca6956e21f6441a6ef7baee3a8b7d8dcbd89f9
* | | Fix vertical transition effectsRobert Burns2013-01-041-5/+17
|/ / | | | | | | | | | | | | - Accordian - Cylinder In/Out Change-Id: I94243c886eccaad4cbe8184cbfd7ac85ed477365
* | ShortcutInfo: Save title if itemType shortcutnebkat2013-01-013-6/+7
| | | | | | | | Change-Id: I7ce0bf8a2aea04131afb423407c09cdcf184febe
* | Cleanupnebkat2013-01-0111-85/+32
| | | | | | | | Change-Id: I92cc54f360032e34e138e2c460d49f24dc028923
* | LauncherProvider: Revert changes to check whether app is installed before ↵nebkat2012-12-311-16/+31
| | | | | | | | | | | | adding favorite Change-Id: Idb9f6bb638b7972a1e52d7992e956bfdeb768be4
* | Workspace: Fixesnebkat2012-12-312-36/+19
| | | | | | | | Change-Id: I2931ad6c62f350b7a6a410370da62d089afcfe81
* | DeleteDropTarget: Don't accept allapps buttonnebkat2012-12-311-1/+5
| | | | | | | | Change-Id: I41bbd1494694ac22b9325675587e1192c174c243
* | Workspace: Fix hotseat droppingnebkat2012-12-302-10/+2
| | | | | | | | Change-Id: If149e47964a674d878646100290f3d409b5d8efc
* | LauncherModel: Fixesnebkat2012-12-3012-89/+105
| | | | | | | | Change-Id: Ibc2cd7e30309380ac95467467df8d831ca12a183
* | ShortcutInfo: Save title if customnebkat2012-12-301-1/+8
| | | | | | | | Change-Id: I803c66e50c2ef3968f6cc12e39a5727d36921920
* | Hotseat: Fix sw720dp default cell countnebkat2012-12-301-4/+1
| | | | | | | | Change-Id: Iaeeb8feac753ee1d335da5be56d1ae6a2e067efc
* | LauncherProvider: Revert some changesnebkat2012-12-291-0/+98
| | | | | | | | Change-Id: If74e94ec5bd4d5b57870854c4a40a9fc0afd1b0f
* | Preferences: Remove useless lognebkat2012-12-291-1/+0
| | | | | | | | Change-Id: Ided2d84ad0adcbcfd0dce2226b216074c3cca0d4
* | Launcher: Remove long-press menunebkat2012-12-2912-663/+89
| | | | | | | | Change-Id: Ie513c0c815fcfa0daa2d5503d3c060ae8e2109c0
* | Merge "PreloadReceiver: Use com.cyanogenmod.trebuchet resources" into cm-10.1nebkat2012-12-291-1/+1
|\ \
| * | PreloadReceiver: Use com.cyanogenmod.trebuchet resourcesnebkat2012-12-281-1/+1
| | | | | | | | | | | | Change-Id: Ib063cd2a8df6d515ed33cce9e84a10d642a40621
* | | Merge "LauncherProvider: Cleanup" into cm-10.1nebkat2012-12-293-357/+0
|\| |
| * | LauncherProvider: Cleanupnebkat2012-12-283-357/+0
| | | | | | | | | | | | Change-Id: Iabdfb3f12d1f52419e7252b1beabd85b4cff47f0