SearchPanel: check if string is null before accessing it

This fixes http://bugs.aokp.co/issues/104

Change-Id: Ib05d473bf6afcaada19c2490bebca18d0ba6fb58
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
AwesomeAction: check if ACTION_ASSIST intent can be handled

This will avoid a force close if no handler is available.

Fixes: http://bugs.aokp.co/issues/95

Change-Id: I041e8739ff9271cc02a73009e3def0585b00ffbc
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
AppWindow: performance and memory improvements

- create views when showing the AppWindow and mNeedsUpdate is true
- don't recreate views with each app install/update/removal
- remove all views before creating a new instance

Change-Id: Iedf573b77787bacf88d6d0a4a2ff09568dfb43f0
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Fix a variety of small publicly-reported bugs.

Possible NULL dereference in cmds/bootanimation/BootAnimation.cpp.
https://code.google.com/p/android/issues/detail?id=61556

Missing fclose in core/jni/android_os_Debug.cpp.
https://code.google.com/p/android/issues/detail?id=61546

Bad loop guards in core/jni/android_util_Process.cpp.
https://code.google.com/p/android/issues/detail?id=61557

Assignment to wrong variable in libs/androidfw/AssetManager.cpp.
https://code.google.com/p/android/issues/detail?id=61560

Missing delete[]s in libs/androidfw/ObbFile.cpp.
https://code.google.com/p/android/issues/detail?id=61549

Leaks on error in tools/aapt/Images.cpp.
https://code.google.com/p/android/issues/detail?id=61552

Two missing fclose calls in tools/aapt/Resource.cpp.
https://code.google.com/p/android/issues/detail?id=61553

Missing fclose in tools/aidl/aidl.cpp.
https://code.google.com/p/android/issues/detail?id=61554

Change-Id: I5820f3824e72d07a9acb776cf0af3e7443f5694a
SystemUI: hide missing sim icon if hide signal option is enabled

For a cleaner statusbar, if someone is using their device without
a SIM, and they choose to enable the hide signal option, I think
it's safe to assume they would like the SIM icon hidden as well!

Change-Id: I6cba97b97dfb9a67822b54ffce008d2327a0c03b
Signed-off-by: Roman Birg <romanbirg@gmail.com>