From 81f26d332c6e096d66e825cd2f1d536cf2606c1e Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Mon, 9 May 2016 18:54:10 -0400 Subject: [PATCH] Fixed an issue where clearing transient views could ANR It could lead to an infinite loop because it was called on the wrong view. Change-Id: Ie8008114474eccf2c0a4b930a5299eb6be1247c1 Fixes: 28634521 --- .../systemui/statusbar/stack/NotificationStackScrollLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index deb8f3b89489e..05a0ea338708e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -2833,7 +2833,7 @@ public class NotificationStackScrollLayout extends ViewGroup private void clearTransientViews(ViewGroup viewGroup) { while (viewGroup != null && viewGroup.getTransientViewCount() != 0) { - viewGroup.removeTransientView(getTransientView(0)); + viewGroup.removeTransientView(viewGroup.getTransientView(0)); } }