OSDN Git Service

Fixed a bug where the dozemode wasn't working correctly
authorSelim Cinek <cinek@google.com>
Tue, 12 Jan 2016 02:01:47 +0000 (18:01 -0800)
committerSelim Cinek <cinek@google.com>
Fri, 22 Jan 2016 03:42:49 +0000 (19:42 -0800)
commit30e387ddcef1f65485daaba7bea267d6d8ceeb18
tree586407fbb64a600fdd62a59c6d9033db159268ad
parent415987388739561153010e1e1304511f6f501fb2
Fixed a bug where the dozemode wasn't working correctly

There where 2 different issues which could lead to the dozemode
not working correctly:
1. The new workarabout where we show the expanded notification
if it has the same size as the collapsed, requires that dozemode
is also called on the right notification
2. When the children were not layed out yet, this calculation could be
wrong and the wrong child was selected, leading to the same issue.

Bug: 26459664
Change-Id: Ib67dcaf2ba9b8b9a1bfa5ece5b7d6c4dff677939
packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java