Fixed a bug where Notifications could overlap

Change-Id: Ic7f9599cee95411e1207b609e584038ad8cb4d99
Fixes: 28550654
This commit is contained in:
Selim Cinek
2016-05-05 12:31:42 -04:00
parent aa8bbf1aef
commit cfcd23e61b

View File

@@ -2329,9 +2329,9 @@ public class NotificationStackScrollLayout extends ViewGroup
}
private void updateHideSensitiveForChild(View child) {
if (mAmbientState.isHideSensitive() && child instanceof ExpandableView) {
if (child instanceof ExpandableView) {
ExpandableView expandableView = (ExpandableView) child;
expandableView.setHideSensitiveForIntrinsicHeight(true);
expandableView.setHideSensitiveForIntrinsicHeight(mAmbientState.isHideSensitive());
}
}