DocumentsUI: Remove catch-all statements

This removes several "catch (Exception)" statements which violates the Android code
style guidelines and hides problems.

I left some catch-all statements in, as they seem to be intended like this (grep for
"catch (Exception").

I suggest we do not merge this before we are sure that we fixed any problems. One problem
is a crash when deleting items (I'm currently working to fix that).

PS 2: Add exception to log.
Change-Id: I483c320c7ee256acd993dd2a509c031fa5e3f09e
DocumentsUI: Handle NPE gracefully

Cherry-picked from OmniROM.

http://jira.omnirom.org/browse/OMNI-956

Change-Id: I8d50d71a9c91486dfc9e5da01538c6b5a626f054
Revert "TextView: Prevent more NPEs"

This reverts commit 087181eb3cc293bdb30584e37c4e04ab060e08bc.

I dunno why this breaks TextView in Chrome app, get rid of safe checks then! lol
HOVER: Fix a couple of things:

- Handle Ticker properly. Update mTicking, call related statements
  and disable ticker for blacklisted apps only when hover is off.
- Remove a bad patch when you release your finger, there is no need and
  along with showCurrentNotification() call at setNotification() can even
  be a bad call.
- Notification removal is already done at BaseStatusBar. Remove useless code.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Merge "HOVER: Fix a couple of things:" into kitkat
PackageManagerService: Fix silly derp after 4.4.3 merge

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
SystemUI: Iterate only over existing Pie snap points
Merge "SystemUI: Iterate only over existing Pie snap points" into kitkat
Merge branch 'kitkat' of https://github.com/AOSPA/android_frameworks_base into kitkat
frameworks: Add class for changing app moving setting

Change-Id: Ic9f0eed496f014fdc110946759e2041ef808e5c4
Quicksettings: Fix theming of basic tiles in edit mode

In edit mode the background of basic tiles was
overridden (not sure why), which broke theming.

We'll just remove this...

Change-Id: Ie80620b7385a1d8a59b737f0a4ae138c13e68ee6
Signed-off-by: Evan Anderson <evan@thelinuxman.us>
Merge "Quicksettings: Fix theming of basic tiles in edit mode" into kitkat
Quicksettings: quick pulldown: try to fix pulling down the wrong side

getWidth() may return 0 when NotificationPanelView isn't laid out yet.

Change-Id: I32f423decf42d08466cbe73bd23ccf70ce66e093
Signed-off-by: David96 <xD_e-mail@gmx.de>
Merge "Quicksettings: quick pulldown: try to fix pulling down the wrong side" into kitkat
Themes: Full support for AOSP Volume Panel

- Recreate VolumePanel with theme enegine UiContext.
- Revert this https://gerrit.paranoidandroid.co/#/c/4375/ since we don't have
  the code with the panel they refer to. Just leave UiContext commented out, maybe
  we'll need that lately.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: Ifc9fd02ec4d263050b7d5f689935fa5e82095d26
Themes: Full support for PA GlobalActions dialogs + ancient derp fix

- Use Theme Engine UiContext for creating dialogs.
- Add theming to reboot confirm dialog(s), send UiContext to ShutdownThread aswell.
- Fix dialog not being recreated when calling showDialog() and dialog being not null is nullified
  without being recreated (we don't call handleShow() there).
  Introduced here https://gerrit.paranoidandroid.co/#/c/128/ but not affecting the final result,
  now we have Theme Engine tho we need it.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Merge "Themes: Full support for PA GlobalActions dialogs + ancient derp fix" into kitkat
GlobalActions: Fix extremely broken indenting

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I5be49ad3e083243dd70259a5114cd771d6bdcc1f
Floating window: Fix possible NPE

Avoid possible NPE if app provides no interface such as pushbullet's
test notification & other apps which provide one.
PackageManagerService: Fix concurrent access to shared state

Stop multiple threads from all calling add on the same HashMap.

Cleanup the use of a boolean flag by removing concurrent writes
to it.

Change-Id: I8d61fe7294dcb67ee7d0d7de88d90d2051c310e6