summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Trebuchet: Centers horizontally the drawer on vertical orientationcm-10.1.0-RC2Jorge Ruesga2013-05-111-2/+2
| | | | | | | | | | | | | | | | | The drawer (AppsCustomizePagedView) disable the use of centers horizontally && vertical every page. There is no problem with that on device with fixed grid, and on devices with isLargeScreen on horizontal orientation aligning the cellpagedview the top looks good. But when orientation is vertical, the cellpagedview is aligned to the left. In this case, this change forces the cellpagedview to center horizontally, which give to the cellpagedview the same good look than horizontal orientation. [before] https://sharecloud.ruesga.com/public.php?service=files&t=5fee1bd3e68fd28eafcaff13357956db [after] https://sharecloud.ruesga.com/public.php?service=files&t=0beb9a41d6ad86fef089fb9f643ff51c Change-Id: Ib5c123ce4e978500fc30cc039a62c590d75b09f7 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: Properly remove grid preference on isLargeScreen devicesJorge Ruesga2013-05-111-3/+8
| | | | | | | Actually, the preference is not been removed. Change-Id: Icdb94526f120501c6e5faa22bd912b0bd0f00f4f Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: Fix drawer vertical orientation bugsJorge Ruesga2013-05-081-4/+9
| | | | | | | Change-Id: If5b8b133bd4ed51270e1d8c05b1f976e0db18aaf JIRA: CYAN-901 Issue: https://jira.cyanogenmod.org/browse/CYAN-901 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: Labels on dock itemsJorge Ruesga2013-05-088-32/+99
| | | | | | | | | | | | | | 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: I055817d30e95ea7f5beaa7e7bdb242c6e887d2fd JIRA: CYAN-523 Issue: https://jira.cyanogenmod.org/browse/CYAN-523 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Trebuchet: Use preference provider to lock/unlock homescreenJorge Ruesga2013-05-012-6/+16
| | | | | | | | mSharedPreferences uses "com.cyanogenmod.trebuchet.prefs", while the Preferences activity uses "com.cyanogenmod.trebuchet_preferences". Use PreferenceProvider to sync lock/unlock homescreen. Change-Id: Ib9312a9f8cffe3f009b8cd8d9b9789d459c1bd96 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: Lock homescreenJorge Ruesga2013-04-294-7/+49
| | | | | | | | | | | | | Allow lock shortcuts and folders positions in the workspace, hotseat and apps and widgets drawer. When is enabled the system avoids to move any shortcut or folder, change its names and access to widgets. Patchset 2: Fixed typo Change-Id: I832da526cf1eb32752218656a7c2dafc53010236 JIRA: CYAN-686 Issue: https://jira.cyanogenmod.org/browse/CYAN-686 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Enable screen stretch by defaultSteve Kondik2013-04-251-1/+1
| | | | | | * I don't know anyone who doesn't want this. Change-Id: I2b5091a79d9ec32841d5f9b93a7c6c11357b9d04
* Hotseat: Go to default page on home buttonNebojsa Cvetkovic2013-04-182-1/+13
| | | | Change-Id: I95a85fafa34a7a58c98b9aed5547434f9c4610c7
* Trebuchet: Hotseat fixesJorge Ruesga2013-04-175-51/+144
| | | | | | | | | | | | | | | | | | | 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>
* Merge "Trebuchet Settings: add setDisplayHomeAsUpEnabled" into cm-10.1David van Tonder2013-04-161-0/+16
|\
| * Trebuchet Settings: add setDisplayHomeAsUpEnabledMatthias Bosc2013-03-261-0/+16
| | | | | | | | | | | | patch 3: cleaner imports Change-Id: Ib7150bf248feb343042b1b8cc20775bae1d27279
* | 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-132-6/+13
| | | | | | | | | | | | | | | | 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-082-2/+69
| | | | | | | | | | | | | | | | removed German translations again, fixed whitespace errors, fixed upper-/lowercase mistakes Change-Id: Ia502eede0e8140f49bc61141252ad0c862e0720b
* | Trebuchet: force close in dock (Trebuchet) with raised default page countJorge Ruesga2013-04-071-1/+3
| | | | | | | | | | | | | | | | | | Use the same ui_homescreen_default_screen's algorithm to fix overflow default values Change-Id: I2f529dc902fd736c2e36ff92cdf001bd23518236 JIRA: CYAN-757 Issue: https://jira.cyanogenmod.org/browse/CYAN-757 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* | Merge "Trebuchet: Default workspace fixes" into cm-10.1nebkat2013-04-071-2/+13
|\ \
| * | Trebuchet: Default workspace fixesJorge Ruesga2013-04-071-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 Patchset 2-4: CleanUp Change-Id: If21559c59995326b93689f89291446a9962274cb
* | | Merge "Trebuchet: Centers vertically the wallpaper" into cm-10.1nebkat2013-04-071-16/+52
|\ \ \
| * | | 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: Fix NPEJorge Ruesga2013-04-071-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes a NPE for the overflow menu. Steps: 1.- A device with no physical menu 2.- Install another launcher (xe Launcher2) (overflow menu is only displayed when Trebuchet runs outside CM or when multiple launchers exists) 3.- Access AllAppDrawer and tap the overflow menu 4.- Tap again the overflow menu or rotate the screen and tap the overflow menu. 5.- NPE The overflow menu is not recreated in onCreateOptionsMenu when isWorkspaceLocked(). The change checks if the user is on the AllAppDrawer and forces the recreation of the menu. Change-Id: Id68dd1f7b0c09a2f62b5f6d4fbef6f217bf98e82 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-132-10/+10
| | | | Change-Id: I4b7ff094ab24b7a5399f6d340412aa1b37679064
* Merge "Revert "Improve scroll responsiveness."" into cm-10.1nebkat2013-03-091-50/+44
|\
| * Revert "Improve scroll responsiveness."nebkat2013-03-091-50/+44
| | | | | | | | | | | | This reverts commit ce6b2513bcfb257cfdeb604060708b3833ccb65e Change-Id: Id1b264c9f4417a2c3f22f3821f446fb9211f4616
* | Revert "Fix overflow visibility logic"nebkat2013-03-061-2/+2
| | | | | | | | | | | | This reverts commit 919296825af7c9028eac0f9c0be6d6c9fbda2184 Change-Id: Iba8cdc0f6d1023b12b7873314df13154f2cf265d
* | Fix overflow visibility logicVeeti Paananen2013-03-041-2/+2
| | | | | | | | Change-Id: Id9235c6946a402841cbd8512b118daf8b1be3c49
* | 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