am 89444a38: Merge "Solved notification overlay issue once and for all" into lmp-mr1-dev

* commit '89444a380d85f8961a4a900734590571375b4f3f':
  Solved notification overlay issue once and for all
This commit is contained in:
Selim Cinek
2014-11-12 16:29:24 +00:00
committed by Android Git Automerger
2 changed files with 8 additions and 0 deletions

View File

@@ -2008,6 +2008,9 @@ public class NotificationStackScrollLayout extends ViewGroup
mStackScrollAlgorithm.onExpansionStopped(); mStackScrollAlgorithm.onExpansionStopped();
if (!mIsExpanded) { if (!mIsExpanded) {
mOwnScrollY = 0; mOwnScrollY = 0;
// lets make sure nothing is in the overlay anymore
getOverlay().clear();
} }
} }

View File

@@ -794,6 +794,11 @@ public class StackStateAnimator {
mHostLayout.getOverlay().remove(changingView); mHostLayout.getOverlay().remove(changingView);
} }
}); });
} else if (event.animationType ==
NotificationStackScrollLayout.AnimationEvent.ANIMATION_TYPE_REMOVE_SWIPED_OUT) {
// A race condition can trigger the view to be added to the overlay even though
// it is swiped out. So let's remove it
mHostLayout.getOverlay().remove(changingView);
} }
mNewEvents.add(event); mNewEvents.add(event);
} }