InCallUI: Incoming Call in Background (1/3)

Patch ported from 4.2 which was done by our lovely HCP. A
very popular one so we bring it back and adapt it to 4.4

Allows user to set that Incoming Call UI will remain in background
if screen is on. Instead, a notification is added to StatusBar, which
can be used to bring up the Incoming Call UI. Ringtone and vibration
still occur as per system settings.

This has the same effect as apps marked as "immersive". It prevents
the incoming call from backgrounding the current activity.

- show normal inCallUI if keyguard is currently active

- cleanup

- do not try to get the services if the feature is disabled

- do not disable notificationshade and navbar if it is a background call

- derp

Change-Id: I68e432a548c10d07cc9d668782cb544fbb4d421d
2 files changed
tree: d6aa787955cdcfd1d15db61173ed7a589bc78195
  1. res/
  2. src/
  4. AndroidManifest.xml
  5. proguard.flags