commit | 4a5796765041dcb45ce782fc7ec5866b89fe0df0 | [log] [tgz] |
---|---|---|
author | Adrian Roos <roosa@google.com> | Tue May 24 16:54:37 2016 -0700 |
committer | Adrian Roos <roosa@google.com> | Thu May 26 15:44:40 2016 -0700 |
tree | 0470dde14b3fe7c441982f6e10214d8b671e0ca0 | |
parent | 38b5946fae50d4e9e8f32c985983d03a4437910d [diff] [blame] |
NotificationStackScroller: Fix scrollTo for notification groups Change-Id: Iab101d7583e9849809058c96f0c480ea9b5cc0f5 Fixes: 28936844
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index 6f6b02d..c2d8941 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
@@ -1486,6 +1486,13 @@ updateBackground(); } + public int getPositionOfChild(ExpandableNotificationRow childRow) { + if (mIsSummaryWithChildren) { + return mChildrenContainer.getPositionInLinearLayout(childRow); + } + return 0; + } + public void setExpansionLogger(ExpansionLogger logger, String key) { mLogger = logger; mLoggingKey = key;