Trebuchet : Empty view for live folders

Live folders are dynamically populated, hence allow the state of having
no items present in its folder. This commit adds a view to show when that happens,
rather than the current situation which looks broken.

Change-Id: I5777e208e5f0d5a3e42c1d65afdc2121d45d983a
Trebuchet : Live folder ids fix

Send the ids as a primitive long array rather than serializable

Change-Id: Ia2cc5d3df58cd8cbc695572c65cc03f61f1a6099
Merge "Trebuchet : Empty view for live folders" into cm-10.2
Trebuchet : Make regular folders persistent

Fix incorrect if condition, so only live folder's contents
are not persisted.

Change-Id: Ide9123feb0d13cc58aaa0679710b7a285b2e30e7
Launcher: fix The Folder doesn't update the real-time language

The Folder doesn't update the real-time language
if the sHintText variable is not null
after changing the system language.

remove static for the variable sHintText

Change-Id: I8b2dc095de3798e7d651ca2897ef366b98d0694e
CRs-Fixed: 407777
Launcher: "No more room on this Home Screen" will prompt twice.

"No more room on this Home Screen" message will prompt twice.
Once while drag from all apps menu , once while the home
screen(Workspace) check if can accept drop from all apps menu.

We need cancel the latter prompt message.

Change-Id: Idb7da2b963266477641827b3fd93ceb29d32893c
CRs-Fixed: 399743
Launcher: The contents is not match tab when change language

When the AppsCustomizePagedView invalidatePageData(),
Launcher will actively switch pages sometimes but update
the active tab of TabHost.

update the current tab when invalidatePageData() done.

Change-Id: Ic939a67178336a057890c423120d62490d131190
CRs-Fixed: BZ574
Launcher: Return item to folder when failing to drag it out

After animation, when add icons to screen, use the old icon list which
is created during animation.

When add icons after animation, refresh the icon list.

Change-Id: I2553ed41b80fac4cca21591a0e52c7e1b6af8f6e
CRs-Fixed: 494966
Launcher: Set Apps name in main menu list marquee

when set font size as "Huge", Some Apps name
in main menu list can not display completely .

Set Apps name in main menu marquee and single line.

Change-Id: I8f7f6a706af22efeeddedc1ba0e3f2e13a16b20e
CRs-Fixed: 331425
Launcher: It will pop shortcut added when the screen no room

Contacts show a sucesssful toast directly after send broadcast to
laucher evenwhen there is no room in launcher,
Laucher has no response to Contacts, and show the error toast
when there is no room.

When the shortcut put successful, Launcher broadcast an intent
with packagename, so Contacts show the sucessful toast only when
receive this intent.

CRs-Fixed: BZ707

Change-Id: I478d1dd25c494b3f0c2d1ac9711e5b56dcd8610f
Fix bug where apps weren't appearing on workspace after being installed

Bug: 8707110

Change-Id: Ib50e0c600a4a77450127f3947aa894346dc99a5a
Cache widget previews in a DB

- Smoother All Apps scroll performance

Change-Id: Id2d31a45e71c63d05a46f580667ad94403730616
Fixing slow binding when returning to Launcher

Bug: 8978842
Bug: 8660324

Change-Id: Idfa37c05ed299faa465ea66de4b43d30da77ecbc
Fix NPE

Bug: 8596760
Change-Id: I401aa0f9a1b8b1c167b502f6aad11cb0f98b7c33
Fixing issue where updating the visibility of one application can trigger all icons to disappear. (Bug 8757421)

- Also queueing bindComponentsRemoved() and bindPackagesUpdated() to wait for resume (Bug 8594153)

Change-Id: I44028fe79f6fa6bcd6b829e36f3f5b9ed756dc4d
Hide clings in child mode

Bug: 8349525

Change-Id: Ie92153e77f1714b88986813a689a4fa7e444d1dc
Follow API change to isUserLimited()

Change-Id: Ibbaad903c07a8e3dc96b37536d438fbee6b0356f
Use user restrictions instead of isLinkedUser

Use a different API to query if the user is likely to have fewer apps installed.

Bug: 8720520
Change-Id: Ic4cbca47679627b33e08fd83653f8d20de294675
Fix crash when rotating all apps

Bug: 8134296
Change-Id: If03a66aae1beefc7e58b36c01f9f904cb586955d
Clean up database in WidgetPreviewLoader

Change-Id: I498317538441c973334362b58714d2f4392933db