Fixed a bug where the icon would dissappear

If we were inflated on the lockscreen as the only child
the icon would dissappear.

Test: send multiple messages, kill systemui, observe
Change-Id: I81c433292f6839920b99ac124ca1dd17eb6e962e
This commit is contained in:
Selim Cinek
2017-02-28 16:09:56 -08:00
parent 414ad33470
commit c8007c5975

View File

@@ -2018,7 +2018,8 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
@Override
public boolean isAboveShelf() {
return mIsPinned || mHeadsupDisappearRunning || (mIsHeadsUp && mAboveShelf);
return !isOnKeyguard()
&& (mIsPinned || mHeadsupDisappearRunning || (mIsHeadsUp && mAboveShelf));
}
public void setShowAmbient(boolean showAmbient) {