OSDN Git Service

Fixed memory leak with the inflater
authorSelim Cinek <cinek@google.com>
Thu, 25 May 2017 17:27:28 +0000 (10:27 -0700)
committerSelim Cinek <cinek@google.com>
Thu, 25 May 2017 19:41:03 +0000 (12:41 -0700)
commit67ff248168fb77dadd81886df134cbfe048a6001
tree74fda83b4843d4a02d4aad53ac5cb33971155201
parent605351c56c43608c58ca164e4ff81e03baf244c5
Fixed memory leak with the inflater

Because min priority children could be removed from
their parents after the removal, a new inflation task
would be started, leading to the view being instantly
readded again. This lead to memory leaks.

It also fixes a bug where the inflation would not inflate
enough views that could lead to crashes / wrong layouts.

Finally there was a indexing error when handling removal
of group summaries.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java
Change-Id: Iac242946bd30060967ee7877560d40e63f39f996
Fixes: 62067645
packages/SystemUI/src/com/android/systemui/statusbar/InflationTask.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationInflater.java
packages/SystemUI/src/com/android/systemui/statusbar/notification/RowInflaterTask.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java