commit | d0bc4fd2fdbad0a1ddaf51456535085b8441807d | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Mon May 09 18:54:10 2016 -0400 |
committer | The Android Automerger <android-build@google.com> | Mon May 09 17:29:54 2016 -0700 |
tree | 208d843fdb151260fb464a061de96cf0deb7964a | |
parent | 66c2b31f81381bde5c68599fcbb9b56d452dc223 [diff] |
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
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 80eec7e..27f75b5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
@@ -2851,7 +2851,7 @@ private void clearTransientViews(ViewGroup viewGroup) { while (viewGroup != null && viewGroup.getTransientViewCount() != 0) { - viewGroup.removeTransientView(getTransientView(0)); + viewGroup.removeTransientView(viewGroup.getTransientView(0)); } }