Revert "Themes: Fix wallpaper chooser crash"

This reverts commit 7cca08daf6eb4f362a7b43763bc4675bf44a9874.

Reverted commit removed Theme Engine's dependencies. The NPE isn't reproducible for me (N4),
also i added back the missing permission that here was restored:

https://gerrit.paranoidandroid.co/#/c/4472/

Change-Id: Ie061ad72350dc10d3302791d2b7e037fa048d3c9
Automatic Translation Import

Change-Id: I3f0ccd2695a5dfb0c35692e0ee1fe921f4c4c706
PIE: Fix assistant issues

We should check if we have a search assistant any time pie is drawed, not
just on init. Also restore previous intent null check way instead of calling
SearchPanelView (may not be initialized yet at boot when pie and immersive are on).
Fix also an old bug, once activated for first time, on first google now swipe up
nothing happened (the check done at first init returned false).

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
WallpaperCropper: Add missing Theme Engine permission

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: If8d9ebe3fe18d033963f432ee7b4246e36b91b3b
Merge "PIE: Fix assistant issues" into kitkat
Merge "Automatic Translation Import" into kitkat
Merge remote-tracking branch 'pa_upstream/kitkat' into legacy