From fc9fb15c22c36c6fe3a56ed6758afeac702fe8da Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 28 Feb 2017 16:47:50 -0800 Subject: [PATCH] Fixed a bug where a wrong notification could be visible Because we were not looking at the wrong state and ignoring gone. Test: add 4 notifications, pull down and tap on bottom continuously Change-Id: Ic4370fa89525802ed99377da215085d84642a174 --- .../src/com/android/systemui/statusbar/stack/ViewState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/ViewState.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/ViewState.java index 624fd3bfcb0c6..c8659fb620510 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/ViewState.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/ViewState.java @@ -594,7 +594,7 @@ public class ViewState { } protected void onYTranslationAnimationFinished(View view) { - if (hidden) { + if (hidden && !gone) { view.setVisibility(View.INVISIBLE); } }