Trebuchet: fix uninstall app from shortcut

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>
Fix overflow visibility logic

Change-Id: Id9235c6946a402841cbd8512b118daf8b1be3c49
Revert "Fix overflow visibility logic"

This reverts commit 919296825af7c9028eac0f9c0be6d6c9fbda2184

Change-Id: Iba8cdc0f6d1023b12b7873314df13154f2cf265d
Revert "Improve scroll responsiveness."

This reverts commit ce6b2513bcfb257cfdeb604060708b3833ccb65e

Change-Id: Id1b264c9f4417a2c3f22f3821f446fb9211f4616
Merge "Revert "Improve scroll responsiveness."" into cm-10.1
Trebuchet: fix Dutch translation

Will fix a typo and error in the Dutch translations.

Change-Id: I551ee1c12d781a4ea7512d685b73e588879823fd
es_ES: Restore AOSP header

Change-Id: Ic5203c4afddb855e316b6a04151244182328db9b
Corrected misspelling of Accordion

Change-Id: I4b7ff094ab24b7a5399f6d340412aa1b37679064
Merge "es_ES: Restore AOSP header" into cm-10.1
Trebuchet: UK translations

- Fixing whitespace errors

Change-Id: Iea0b6b7d5891d3a486bde277402946b2090e5ff4
Merge "Trebuchet: UK translations" into cm-10.1
Trebuchet: Updated Polish translation

Patch Set 2: Minor correction
Patch Set 3: Correction
Patch Set 4: Changed 'szuflada' for 'lista'

Change-Id: I90d7958c6d70cb2f23619f8afb825213e0adce5b
Trebuchet: fix coherence in French translation

    * Patch Set 1: initial commit
    * Patch Set 2: backslash missed

Change-Id: I0e7994e0dd6e576b13b06c5eda215968d115cf52
Merge "Trebuchet: fix coherence in French translation" into cm-10.1
Fix market & overflow button paddings

Patch Set 2: Fixed overflow button padding

Change-Id: Ia4bf8e12311b28c13091ec166feb3c24fcfb0596
Trebuchet: Add overlayable config for tablet workspace grid size

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
merge cm source code to dev branch