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
This commit is contained in:
Selim Cinek
2017-02-28 16:47:50 -08:00
parent c8007c5975
commit fc9fb15c22

View File

@@ -594,7 +594,7 @@ public class ViewState {
}
protected void onYTranslationAnimationFinished(View view) {
if (hidden) {
if (hidden && !gone) {
view.setVisibility(View.INVISIBLE);
}
}