Trebuchet: Don't show protected apps options in restricted profiles.

Change-Id: I6fb32d39e25150fdc65669c452784ab60e9f3115
JIRA: 4668
Issue: https://jira.cyanogenmod.org/browse/CYAN-4668
Trebuchet: Draw the dynamic grid image dynamically

This commits makes it possible to draw the image which previews
the selected grid dynamically.

Change-Id: I7c029f06110afdf1fe62145a079bba76166bb690
After getting an update to rebind items after getting updates for protected components, strip empty screens

Change-Id: Ic269e7c8c233b34c8cdf638f2c794bd0e5bf668a
Automatic translation import

Change-Id: I7703a0e4b9c453368e7765c92c502b4af140f43b
Fix for shadow folders.

Repro:
  - Set low animation scale (.3-.5)
  - Pkill Trebuchet
  - Open home screen and click open folder with ~12+

https://jira.cyanogenmod.org/browse/CYAN-4907

Change-Id: Ib927101e72674d5ffa3733f5c093c3f9970fa273
Settings adapter should use the position and partition values

Fixes:
https://jira.cyanogenmod.org/browse/BACON-587

Change-Id: Ie935c51ea1e68eaa7da64b23eaf2ae28a630a3bb
Fix AppInfo drop target getting cut off when search bar is off.

https://jira.cyanogenmod.org/browse/CYAN-4665

Change-Id: Id1db2c19430bb5c617ab53383fd25625980e9acf
Fix for workspace showing outline after live settings changes

Change-Id: Ia60d8541b91e0ea9f65c8551aff1cfea7ae5c3fa
Fix spacing issues on devices with/without nav-bar in overview settings panel

Change-Id: I329b63b780e5727307770e076bf03e3bc4d82dd0
When reloading dynamic grid, reload restore page first.

Change-Id: I05c1d1faf61ecd79abf15d4ab84a689b7e0cb2ac
Fix: Sort apps before opening AppDrawer to reflect the
most recent counts.

Repro:
 Clear Trebuchet data
 Drawer Sorting mode of Launch Count
 Launch App1 twice
 Launch App2 once
 Open drawer, note App1 ordered before App2
 Launcher App2 two more times
 Open drawer, note position hasn't updated

Change-Id: I9d85627f5dc86bc753a1e6f22911ee39a8d78b5e
Fix HideIcon behavior in Folders

https://jira.cyanogenmod.org/browse/CYAN-5022

Change-Id: I6da2e8ee4b3ab4fede10553a422f5520eb6e1293
Automatic translation import

Change-Id: I377f8bdb75bf90570fbd2c4b974362824beeeb57
Trebuchet: fix expanded desktop with GEL integration

On leaving the GEL activity, we were setting extra flags, which affected
global sensitivity. We actually don't have to do any extra cleanup and
unset any flags, so let's just remove the code!

Change-Id: I111f2e4c62017841e0148f7172ad097e00962385
Signed-off-by: Roman Birg <roman@cyngn.com>
Revert "Use ArrayListExtra for broadcasting theme changes [2/2]"

This reverts commit ebf8f37515c23a167cef2bb8cff04854c52fd35b.

Change-Id: If80e3bc0443fa9e79c085e9251f4be0a10730397
Revert "Use theme change categories and clear widget preview cache"

This reverts commit b52694e4fdd3c8ee524b5f6f870697e40061b2a6.

Change-Id: I69bff363280ea69ee83dea3a8f2ef2d0d95a7be0
Revert "Handle theme changes"

This reverts commit 64718d775ce8322915d143adb9a0f1ea3160e9e3.

Change-Id: Ibf92232dfa8ee96aafecc4b4e49fc55cfb21c229
Fix - Workspace background gradient

Repro:
 - Open App Drawer
 - Launcher any app
 - Press back (User should be returned to the App Drawer)
 - Press back again (User should be returned to the Home Screen)
 - Note gradient near status bar (Home Screen gradient is missing!)
 - Press home
 - Note Home Screen gradient reappears

Change-Id: Ib24d94c2deba06f872f42bfffff78317844dd731
Automatic translation import

Change-Id: I6bbc7a3c3ac320c7e70ca2ad1e4191483291a5be
Automatic translation import

Change-Id: I4611831a3a8cb56a5731d66bebe2cd590b1994f9