Merge "Fixed some notification leaks"
This commit is contained in:
@@ -571,6 +571,7 @@ public class ExpandHelper implements Gefingerpoken {
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
if (!mCancelled) {
|
||||
mCallback.setUserExpandedChild(scaledView, expand);
|
||||
mScaler.setView(null);
|
||||
} else {
|
||||
mCallback.setExpansionCancelled(scaledView);
|
||||
}
|
||||
@@ -592,6 +593,7 @@ public class ExpandHelper implements Gefingerpoken {
|
||||
}
|
||||
mCallback.setUserExpandedChild(mResizedView, nowExpanded);
|
||||
mCallback.setUserLockedChild(mResizedView, false);
|
||||
mScaler.setView(null);
|
||||
}
|
||||
|
||||
mExpanding = false;
|
||||
|
||||
@@ -133,6 +133,7 @@ public class DragDownHelper implements Gefingerpoken {
|
||||
mDragDownCallback.setEmptyDragAmount(0f);
|
||||
} else {
|
||||
mCallback.setUserLockedChild(mStartingChild, false);
|
||||
mStartingChild = null;
|
||||
}
|
||||
mDraggingDown = false;
|
||||
} else {
|
||||
@@ -214,6 +215,7 @@ public class DragDownHelper implements Gefingerpoken {
|
||||
mFalsingManager.onNotificatonStopDraggingDown();
|
||||
if (mStartingChild != null) {
|
||||
cancelExpansion(mStartingChild);
|
||||
mStartingChild = null;
|
||||
} else {
|
||||
cancelExpansion();
|
||||
}
|
||||
|
||||
@@ -2814,7 +2814,7 @@ public class NotificationStackScrollLayout extends ViewGroup
|
||||
}
|
||||
mNeedsAnimation = true;
|
||||
}
|
||||
if (isHeadsUp(child) && !mChangePositionInProgress) {
|
||||
if (isHeadsUp(child) && mAnimationsEnabled && !mChangePositionInProgress) {
|
||||
mAddedHeadsUpChildren.add(child);
|
||||
mChildrenToAddAnimated.remove(child);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user