Halo (1/2) Merge conflicts: core/java/android/provider/Settings.java packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Halo: Add master switch to disable Halo (1/2)

Signed-off-by: Paul Beeler <sparksco@gmail.com>

Fix build
Signed-off-by: Paul Beeler <sparksco@gmail.com>
Reworked transparent layer
When a halo'ed window is opened, the transparent layer will be always visible. It will manage the background dim.
This fixes some apps dimming its sandboxed processes (like chrome).

LayerActivity manages its own lifecycle. When it's focused after paused it finishes itself.

System processes (identified by "android" pkg in SystemUI and system uid in Activity) don't use the layer and still use their own background. This
has been kept this way to not interfere with their activity.

Signed-off-by: Paul Beeler <sparksco@gmail.com>
LayerActivity: Corrected lifecycle
Should contemplate the case that the activity gets stopped
Fix little derp causing visual bug

To reproduce, disable halo, and press "clear all notifications" button

Change-Id: Ice7ab62229e27db53ef51fd5df55dbcd0a86358b
Update drawables from PA
Signed-off-by: Paul Beeler <sparksco@gmail.com>
HALO cleanup

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Don't bring home to the front if we're opening a floating activity
Halo:Option to pause the underlying app(1/2) merge conflicts: core/java/android/provider/Settings.java
Fix Halo not showed at first notifiction drop
Give floating flag to previous activities in the stack
When launching stacked activities, only the last one is flagged as floating in sysui when tapping halo.
This causes the system to show the launcher when the first stacked activity is launched (this first intent gets the flag FLAG_ACTIVITY_TASK_ON_HOME
in TaskStackBuilder).
This change makes all the stacked activities get the floating flag if the last one has it.
HALO:merging derp...