summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2015-04-15 18:47:01 -0700
committerSelim Cinek <cinek@google.com>2015-04-16 11:53:43 -0700
commit2aab2fb76e0d3cbc8457aaaf92f49da2be6e14cc (patch)
tree10bdf9e98e8ec10b76117070f9217fd66f462bc9
parent60122be6747c4f79b96f6808158f8f7e7548b7d3 (diff)
downloadframeworks_base-2aab2fb76e0d3cbc8457aaaf92f49da2be6e14cc.zip
frameworks_base-2aab2fb76e0d3cbc8457aaaf92f49da2be6e14cc.tar.gz
frameworks_base-2aab2fb76e0d3cbc8457aaaf92f49da2be6e14cc.tar.bz2
Fixed that disappear animations were disabled
Bug: 20165559 Change-Id: I44fd10aee1ad4107ffcf98e103cd8054afb83731
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java20
1 files changed, 5 insertions, 15 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
index f247488..88fc602 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
@@ -220,7 +220,6 @@ public class NotificationStackScrollLayout extends ViewGroup
private PhoneStatusBar mPhoneStatusBar;
private int[] mTempInt2 = new int[2];
private boolean mGenerateChildOrderChangedEvent;
- private boolean mRemoveAnimationEnabled;
private HashSet<Runnable> mAnimationFinishedRunnables = new HashSet<>();
private HashSet<Pair<ExpandableNotificationRow, Boolean>> mHeadsUpChangeAnimations
= new HashSet<>();
@@ -1630,16 +1629,11 @@ public class NotificationStackScrollLayout extends ViewGroup
((ExpandableView) child).setOnHeightChangedListener(null);
mCurrentStackScrollState.removeViewStateForView(child);
updateScrollStateForRemovedChild(child);
- if (mRemoveAnimationEnabled) {
- boolean animationGenerated = generateRemoveAnimation(child);
- if (animationGenerated && !mSwipedOutViews.contains(child)) {
- // Add this view to an overlay in order to ensure that it will still be temporary
- // drawn when removed
- getOverlay().add(child);
- }
- } else {
- // TODO: handle this more cleanly when HEADS-up and the shade are merged
- requestAnimateEverything();
+ boolean animationGenerated = generateRemoveAnimation(child);
+ if (animationGenerated && !mSwipedOutViews.contains(child)) {
+ // Add this view to an overlay in order to ensure that it will still be temporary
+ // drawn when removed
+ getOverlay().add(child);
}
updateAnimationState(false, child);
@@ -2631,10 +2625,6 @@ public class NotificationStackScrollLayout extends ViewGroup
return touchY > mIntrinsicPadding;
}
- public void setRemoveAnimationEnabled(boolean enabled) {
- mRemoveAnimationEnabled = enabled;
- }
-
private void updateExpandButtons() {
for (int i = 0; i < getChildCount(); i++) {
View child = getChildAt(i);