OSDN Git Service

Fixed a bug where systemui could crash while cloning
authorSelim Cinek <cinek@google.com>
Thu, 8 Jun 2017 20:20:08 +0000 (13:20 -0700)
committerSelim Cinek <cinek@google.com>
Thu, 8 Jun 2017 20:31:26 +0000 (13:31 -0700)
commit7f09ce1a238ad5a647da913e275fd637ac75ab49
tree9870650aa8623c901ed15a858fef4d3e27115c12
parentbeba1bf936e62da9a0add95e29e0e146adc03f52
Fixed a bug where systemui could crash while cloning

Because cloning wasn't synchronized, the notification
could become a non-root temporarily which in turn could
lead to a crash.
1. We're now properly synchronizing the cloning, such that
this can't happen anymore
2. We're now only cloning the old statusbar notification lightly
instead of heavily to avoid this altogether

Test: manual, update decoratedcustomview notifications really fast
Change-Id: Ia6525eec64ad9a26956ca2198e20198f55b2173c
Fixes: 62181033
core/java/android/widget/RemoteViews.java
packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java