am 4d696690: Merge "Fixed a bug where redacted notifications had the wrong height" into mnc-dev
* commit '4d696690e6fb4059608d239624fde255c916b8e2': Fixed a bug where redacted notifications had the wrong height
This commit is contained in:
@@ -1764,6 +1764,7 @@ public class NotificationStackScrollLayout extends ViewGroup
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void onViewAddedInternal(View child) {
|
private void onViewAddedInternal(View child) {
|
||||||
|
updateHideSensitiveForChild(child);
|
||||||
mStackScrollAlgorithm.notifyChildrenChanged(this);
|
mStackScrollAlgorithm.notifyChildrenChanged(this);
|
||||||
((ExpandableView) child).setOnHeightChangedListener(this);
|
((ExpandableView) child).setOnHeightChangedListener(this);
|
||||||
generateAddAnimation(child, false /* fromMoreCard */);
|
generateAddAnimation(child, false /* fromMoreCard */);
|
||||||
@@ -1776,6 +1777,13 @@ public class NotificationStackScrollLayout extends ViewGroup
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void updateHideSensitiveForChild(View child) {
|
||||||
|
if (mAmbientState.isHideSensitive() && child instanceof ExpandableView) {
|
||||||
|
ExpandableView expandableView = (ExpandableView) child;
|
||||||
|
expandableView.setHideSensitiveForIntrinsicHeight(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void notifyGroupChildRemoved(View row) {
|
public void notifyGroupChildRemoved(View row) {
|
||||||
onViewRemovedInternal(row);
|
onViewRemovedInternal(row);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user