[ActivityManager] Reset ActivityRecord's waitingVisible

Symptom:
The ActivityRecord's waitingVisible is not set to false for
all cases when the ActivityRecord is removed from
mStackSupervisor.mWaitingVisibleActivities.

Solution:
Set the waitingVisible to false when it is removed from
mStackSupervisor.mWaitingVisibleActivities

Change-Id: If0f0683971d70a6866b0167e91dd95feebaac178
base: screenrecord: forward port from 4.4
Squashed commit of the following:

commit 06f9b5a7ebefb8ff477241269a005b9afae2be87
Author: maxwen <max.weninger@gmail.com>
Date:   Sun Dec 28 21:31:46 2014 +0100

    base: screenrecord: use different notification image

    Change-Id: I252144a4f5c3bdaa84974b996348885ba8dee942

commit 6f9f2d83e5c86b6259bccfdfadb0e4243872f7f9
Author: XpLoDWilD <xplod@ouverta.fr>
Date:   Sun Jul 13 21:43:28 2014 +0200

    Screenrecord: Fix SystemUI loop-crash

    Change-Id: I25045820465d21b7d1f0e933e5e4f3324cb044b6

commit b6f20490332f293df050db46f9a8ced9394b9641
Author: maxwen <max.weninger@gmail.com>
Date:   Tue Apr 29 23:28:06 2014 +0200

    base: screenrecord: update notification

    Update show/hide pointer button for actual state

    Change-Id: I02090f05b06896248483f3f9ff2eb22924a22476

commit aa23ce799167f97a6e9f7beaf57d23027b5c32ed
Author: maxwen <max.weninger@gmail.com>
Date:   Tue Dec 23 01:04:35 2014 +0100

    Screenrecord: correct multi-user acces for settings

    Change-Id: I0bee907d190b2dc0df1c12d136f31ed379a59866

commit 1fc7464c6d3efcb13e243aae7ed798d67af86ede
Author: xplodwild <me@xplod.fr>
Date:   Wed Nov 13 08:16:57 2013 +0100

    Screenrecord: Create the Screenshots directory if it doesn't exist

    Change-Id: I2b0458eed024dbda97e9e1ea3426c12d29add781

commit 7c08a37a28bcf7b44e9de2b67c502077c0f4fb47
Author: xplodwild <me@xplod.fr>
Date:   Tue Nov 5 20:30:09 2013 +0100

    base: Add a key combo to start/stop video recording

    Press volume up and power to start recording a video of your screen.
    Press this key combo again to stop it.

    Change-Id: Id0b13ba1092a1d6e0bf7bff5f14d89764cdf370c

Change-Id: Ida1ee4a5c8d334c72d549752d02bd7848932dc7c
Conflicts:
	core/res/res/values/config.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java