Merge "Fixed an issue where heads-upped notifications would stay" into nyc-mr2-dev
This commit is contained in:
@@ -1582,8 +1582,11 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
|||||||
if (mHeadsUpManager.isHeadsUp(key)) {
|
if (mHeadsUpManager.isHeadsUp(key)) {
|
||||||
// A cancel() in repsonse to a remote input shouldn't be delayed, as it makes the
|
// A cancel() in repsonse to a remote input shouldn't be delayed, as it makes the
|
||||||
// sending look longer than it takes.
|
// sending look longer than it takes.
|
||||||
|
// Also we should not defer the removal if reordering isn't allowed since otherwise
|
||||||
|
// some notifications can't disappear before the panel is closed.
|
||||||
boolean ignoreEarliestRemovalTime = mRemoteInputController.isSpinning(key)
|
boolean ignoreEarliestRemovalTime = mRemoteInputController.isSpinning(key)
|
||||||
&& !FORCE_REMOTE_INPUT_HISTORY;
|
&& !FORCE_REMOTE_INPUT_HISTORY
|
||||||
|
|| !mVisualStabilityManager.isReorderingAllowed();
|
||||||
deferRemoval = !mHeadsUpManager.removeNotification(key, ignoreEarliestRemovalTime);
|
deferRemoval = !mHeadsUpManager.removeNotification(key, ignoreEarliestRemovalTime);
|
||||||
}
|
}
|
||||||
if (key.equals(mMediaNotificationKey)) {
|
if (key.equals(mMediaNotificationKey)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user