OSDN Git Service

Add main thread and reentrant asserts to chase down crashes
authorNed Burns <pixel@google.com>
Wed, 19 Jun 2019 23:49:19 +0000 (19:49 -0400)
committerNed Burns <pixel@google.com>
Thu, 20 Jun 2019 19:40:55 +0000 (15:40 -0400)
commitd4a69f7007a1b35511608c3556116ee3ab921d59
tree5687173f5ca87d091b06f2bec21725e6b05f311d
parent9ea1842c38271e4c1672da709aa4b2dc1094e8d3
Add main thread and reentrant asserts to chase down crashes

We're seeing crashes due to view hierarchy violations that shouldn't be
possible. Adding some guards to make sure we aren't running into
off-thread hierarchy manipulation or re-entrant calls to the update
code.

Test: manual
Bug: 135018709
Change-Id: I4b1f2bd7e3a6f80384486d59b9f56fc3713537cf
packages/SystemUI/src/com/android/systemui/statusbar/NotificationViewHierarchyManager.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutTest.java