summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/Workspace.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Revert "Trebuchet : Fix dynamic padding"" into cm-10.2Danesh M2013-10-251-1/+10
|\
| * Revert "Trebuchet : Fix dynamic padding"Danesh M2013-10-241-1/+10
| | | | | | | | | | | | This reverts commit efa4b8d18459243abf379bb0135ee0a89165a50a. Change-Id: Ibc3857b7cb94cce395cbaa2671b34cced3a538b9
* | Merge "Trebuchet : Fix dynamic padding" into cm-10.2Danesh Mondegarian2013-10-231-10/+1
|\|
| * Trebuchet : Fix dynamic paddingDanesh Mondegarian2013-10-161-10/+1
| | | | | | | | | | | | Improves dynamic padding based on cellcount / screen size. Change-Id: Ib1c9419a39ea2b3a62be9564373a713a411cb1cf
* | Trebuchet: Notify wallpaper offsets to LWPsJorge Ruesga2013-10-191-1/+1
|/ | | | | Change-Id: Icca0ba23f674c2b2116f47349e7b3abc62d32c21 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet : Icon edit dialog fixesDanesh Mondegarian2013-09-291-0/+5
| | | | | | | | | | | Append text rather than setText for the edit dialog title, so that the cursor moves to the end. Keep track of customIconResource state to ensure its not reset. Preserve custom icons when the linking application is updated Change-Id: Icab0f0ce45f1dbb79ce895228303aa2c944f1213
* Trebuchet : Add live folder removal to removeItemsByPackageNameDanesh M2013-08-191-0/+6
| | | | | | | | | Previously only removeItemsByComponentName had an entry for live folders which left removeItemsByPackageName to fall through to regular folders. This patchset addresses that and marks the folder for removal if the package was uninstalled. Change-Id: I2ae8c8f5ff723cc377e8a4bb56e0e118c438e4e7
* Fixing NPE in Workspace.removeItemsByPackageName() (Bug 8942242)Winson Chung2013-08-171-3/+3
| | | | Change-Id: I1f63e548caa4b00b7166db4a53307c80650d8907
* Fixing issue where updating the visibility of one application can trigger ↵Winson Chung2013-08-171-9/+64
| | | | | | | | all icons to disappear. (Bug 8757421) - Also queueing bindComponentsRemoved() and bindPackagesUpdated() to wait for resume (Bug 8594153) Change-Id: I44028fe79f6fa6bcd6b829e36f3f5b9ed756dc4d
* Improve All Apps --> Workspace performanceMichael Jurka2013-08-121-1/+1
| | | | | | | | | Fix bug where HW layers were not enabled for that transition Bug: 8323765 Change-Id: Ifae4a17148ae0091b5f592e5150054b0c1269fb1
* Disable clipping where unnecessaryRomain Guy2013-08-121-0/+2
| | | | | | | This change prevents the renderer from using a stencil buffer to render rotated CellLayouts. Change-Id: I0414f59ed45502323ab588820ceb4a5e3ec17140
* Use less HW layers in All AppsMichael Jurka2013-08-121-2/+2
| | | | | | (saves memory) Change-Id: Ib2beda7549662a787437c7aa043e7858357c051f
* Fixing issue where drag view is jumping when you scroll from hovering over ↵Winson Chung2013-08-121-1/+1
| | | | | | an edge. (Bug 8522679) Change-Id: Ie523e718bd1b558db9608aa66f6c353e4b8e1a14
* Fix jumps in the beginning of animationsMichael Jurka2013-08-121-2/+4
| | | | | | | | | | If the first draw frame of an animation is expensive, which it often is, it causes a big jump. Added a helper class which automatically adjusts the animation start time if the first frame is more than 16ms. Change-Id: I100edbc41c2abe930a32d6bcf0a782ea9735f7f9
* Initial base for live foldersDanesh M2013-08-071-0/+12
| | | | Change-Id: I76b8065b88e4a51d33e802fc8b80911f703f025a
* Trebuchet: Fix stack effectJorge Ruesga2013-06-221-2/+19
| | | | | | | | | | Actually stack effect is broken. Dragging an item from the current page to other fails, because the page has an alpha value of 0, and the dragged icon falls into a hidden state. Patchset 2: Fixed the overlap of views of stack effect on tablets Change-Id: I7c607eee29fbd82542b49d2c6bd50d7554e6d673 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: Sync "maxExternal" preferences and its defaults valuesJorge Ruesga2013-06-221-1/+3
| | | | | Change-Id: If6f70d75a9a2e5ea044e68dcaf906748bd09a53e Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: Fix fadein adjacent screens for stack transitionJorge Ruesga2013-06-151-0/+3
| | | | | | | Change-Id: I3bda2eeddc49495c5e7c6ce11e23aa01729cfa23 JIRA: CYAN-1131 Issue: https://jira.cyanogenmod.org/browse/CYAN-1131 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Workspace: Change state animation cleanupNebojsa Cvetkovic2013-06-141-60/+60
| | | | Change-Id: I3c0ef9b6378c10b3e7d92643abd7ececc4431cb0
* LauncherViewPropertyAnimator: Implement end()Nebojsa Cvetkovic2013-06-141-1/+1
| | | | Change-Id: Ic7a0c98b937dc5fc8d429ab38303865dae9c7686
* Workspace: Small cleanupNebojsa Cvetkovic2013-06-141-5/+0
| | | | Change-Id: I9fed548754c96d9a81f3aac142edf1cdd8a1b4f5
* Fix for low aspect ratio (4x3) tablets.David Marble2013-05-271-2/+3
| | | | | | | | | | | | | | | | The recent changes (http://review.cyanogenmod.org/#/c/42991/) cause problems for tablets with a 4x3 screen such as Tenderloin. The icon spacing is not calculated correctly. This is stated in the code for Workspace.java at line 441: "//TODO: This code currently fails on tablets with an aspect ratio < 1.3." This change fixes that failure for such tablets. Besides setting the grid size, stretching is required to get useable screens. This reenables stretching as well as grid size setting if the maintainer has specified <bool name="config_workspaceTabletGrid">true</bool> in an overlay. There is no change to the default behavior. Change-Id: I5863ba4120d1e27773a58be2c336c266c05b838f
* Trebuchet: Better layout for isScreenLarge devicesJorge Ruesga2013-05-251-0/+4
| | | | | | | | | | | | | | | | | | | | This change increase the space for the shortcuts at hotseat to fit the workspace on isScreenLarge devices. Also deactivate and remove the stretch screen setting, because the dimensions are always calculated on these devices. Also this change configures the space between hotseat pages to avoid to display icons for other pages in the current hotseat page. Patchset 2: Added nebkat suggestions Screenshots from TF700T: Landscape -> https://sharecloud.ruesga.com/public.php?service=files&t=efede324ade05db79878eac13e637301 Portrait -> https://sharecloud.ruesga.com/public.php?service=files&t=79a7002a73e167eed08a195c4cf3d05c Change-Id: I061303ce2ac78f3e7f7b13c4a25602b14e991e99 JIRA: CYAN-502 Issue: https://jira.cyanogenmod.org/browse/CYAN-502 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: Labels on dock itemsJorge Ruesga2013-05-071-18/+15
| | | | | | | | | | | | | | Patchset 4: Discard item scale and use paddings to adjust the workspace Patchset 5: mHideDockIconLabels = false on vertical hotseat Patchset 6: Fixed FolderIcon typo Fixed inline style Remove Workspace injection on Launcher class Use isLargeScreen to show text in vertical hotseat Change-Id: I00c57a28b4c7110b66ec6f856df8865006a76699 JIRA: CYAN-523 Issue: https://jira.cyanogenmod.org/browse/CYAN-523 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: Force reload wallpaper dimension on screen size changeJorge Ruesga2013-04-301-2/+7
| | | | | | | | | | This ensures that the wallpaper dimensions are adjusted when a screen size change occurs, for example when the expanded desktop feature is activated on devices without hard keys. Change-Id: I4be96034a609afb2dd18e346b04ffacfed4e7043 JIRA: CYAN-790 Issue: https://jira.cyanogenmod.org/browse/CYAN-790 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: Hotseat fixesJorge Ruesga2013-04-171-19/+34
| | | | | | | | | | | | | | | | | | | This change fixes some of the bugs of HotSeat on landscape mode: * Fixed distance algorithm for XY spatial (not only for X axis) * Fixed cellX and cellY database handling when items are added in landscape mode * Fixed cellX and cellY transtions when add new items * Restore the current hotseat page on rotation Patchset 2: Fixed create new folder in vertical hotseat Patchset 3: Fixed broken mTransposeLayoutWithOrientation != true (large screen devices) Fixed delete existing folder in vertical hotseat Patchset 4: Fixed destroy animation when a folder is destroyed in vertical hotseat Rebased Change-Id: I8b0faa5b6fde42d80e0d98226fca07eead04223c JIRA: CYAN-315 Issue: https://jira.cyanogenmod.org/browse/CYAN-315 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: Fix vertical position of wallpaper when mWallpaperHack is activatedJorge Ruesga2013-04-141-1/+1
| | | | | | | | Fix vertical aligment of wallpaper when Wallpaper Quick Render setting is activated. See http://review.cyanogenmod.org/35227 Change-Id: I3b2b7b59ebce995724bcc2fe3f2aa079c7abafee Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: updated "carousel" transition effectFlorian Edelmann2013-04-131-1/+1
| | | | | | | | fixed vertical drawer support changed pivotY to half the screen height, so it looks better now Change-Id: I152ec456e80de7342d9f06985aa060c40407f856
* added "carousel" transition effectFlorian Edelmann2013-04-081-1/+38
| | | | | | | | removed German translations again, fixed whitespace errors, fixed upper-/lowercase mistakes Change-Id: Ia502eede0e8140f49bc61141252ad0c862e0720b
* Trebuchet: Centers vertically the wallpaperJorge Ruesga2013-04-071-16/+52
| | | | | | | | | | | | Actually, the wallpaper is not center vertically (both, with wallpaperhack and without wallpaperhack). This patch modifies: * Replaces the WallpaperOffsetInterpolator class by the Launcher2 implementation. * Fixes mWallpaperHack. onDraw now centers the y vertically. * Disable mWallpaperHack when there is only one homescreen (otherwise a black screen is displayed). Change-Id: Ia5e0763c9a31609db8f7826f619ed808041e97e7 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: Add overlayable config for tablet workspace grid sizeDavid Marble2013-03-241-1/+1
| | | | | | | | | | | | | | | | | | | Tablets with a 4x3 screen such as the HP Touchpad do not work well with automatic grid size setting. This problem is described in CyanogenMod Issue 5798: Trebuchet Tablet. This fixes that issue. This creates a flag in config that can be overlayed at build time to allow user settings to adjust grid size. The maximum settable row and column counts are also overlayable. This is a port of: http://review.cyanogenmod.org/#/c/21067/ which was merged into jellybean. The default behavior is unchanged. Rebased. Change-Id: I3d7cf5e121a423a0033310eee88e498bc080af3c
* Corrected misspelling of AccordionSeth Gregory2013-03-131-6/+6
| | | | Change-Id: I4b7ff094ab24b7a5399f6d340412aa1b37679064
* Workspace: Fix wallpaper offset landscapenebkat2013-01-081-5/+1
| | | | Change-Id: I3b283efbe69f68fd088154b9ed2fe59ceb3336ac
* Workspace: Default wallpaper hacknebkat2013-01-061-1/+2
| | | | | | | 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-061-9/+4
| | | | Change-Id: Ia8876584e008d359bfecc85412ea03f8d7bb450f
* Workspace: Only show hotseat outlines if hovering overnebkat2013-01-061-1/+2
| | | | Change-Id: Ib5b3373cec6d54f6136fca6a1a6663c1fe93ef9b
* Cleanupnebkat2013-01-011-10/+5
| | | | Change-Id: I92cc54f360032e34e138e2c460d49f24dc028923
* Workspace: Fixesnebkat2012-12-311-3/+3
| | | | Change-Id: I2931ad6c62f350b7a6a410370da62d089afcfe81
* Workspace: Fix hotseat droppingnebkat2012-12-301-2/+2
| | | | Change-Id: If149e47964a674d878646100290f3d409b5d8efc
* LauncherModel: Fixesnebkat2012-12-301-10/+16
| | | | Change-Id: Ibc2cd7e30309380ac95467467df8d831ca12a183
* Launcher: Remove long-press menunebkat2012-12-291-12/+5
| | | | Change-Id: Ie513c0c815fcfa0daa2d5503d3c060ae8e2109c0
* Launcher: Hide wallpaper when transitioning if rendering manuallynebkat2012-12-281-0/+4
| | | | Change-Id: Ibc1f0f0052c0a64c5218770032560c488c3c113d
* Workspace: Fix folder creationnebkat2012-12-271-2/+4
| | | | Change-Id: Ib8e33f239a50fa259a2ba923e27bcaa3ce807e38
* Workspace: Hotseat fixesnebkat2012-12-271-4/+6
| | | | Change-Id: If1d46d8a22347722a06bed0e553646fd3c16a044
* Fixesnebkat2012-12-261-3/+6
| | | | Change-Id: I0778017cc8a7afc169fa72ebbee25ba2bdeefc60
* LauncherActions: Don't use magic intentsnebkat2012-12-261-2/+4
| | | | Change-Id: I5ee3fbc9b1cdc63407def751bb7639cb54bdb7c3
* Workspace: Hotseat fixesnebkat2012-12-261-24/+36
| | | | Change-Id: Ieceed18c47bc3b6d6194506f0d7545c4513befa0
* Cleanupnebkat2012-12-261-160/+49
| | | | Change-Id: Ied69f285305dbc3e1bf62676f23c47d6c6969e0a
* Hotseat: Lanscape layout fixesnebkat2012-12-241-5/+5
| | | | Change-Id: I160e16e5d56e9722e210f3f3e9cf4413493c78a8
* Hotseat: Fix landscape gridnebkat2012-12-241-1/+1
| | | | | | | Conflicts: src/com/cyanogenmod/trebuchet/Hotseat.java Change-Id: Ib5fd58b084048b458c82bbf134084354d2e74cd9