Skip to content

Commit 321452d

Browse files
committed
Set row height to the row height not the notification height.
Bug: 6376501 Change-Id: I41567b11fcb1d39bc75ef782faa8287bbb1e4ca8
1 parent 66556c7 commit 321452d

File tree

3 files changed

+4
-28
lines changed

3 files changed

+4
-28
lines changed

packages/SystemUI/res/values-hdpi/dimens.xml

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/SystemUI/res/values/dimens.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<dimen name="status_bar_icon_padding">0dp</dimen>
7373

7474
<!-- thickness (height) of dividers between each notification row -->
75-
<dimen name="notification_divider_height">4dp</dimen>
75+
<dimen name="notification_divider_height">2dp</dimen>
7676

7777
<!-- Notification drawer tuning parameters (phone UI) -->
7878
<!-- Initial velocity of the shade when expanding on its own -->

packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ protected void workAroundBadLayerDrawableOpacity(View v) {
436436
}
437437

438438
protected boolean inflateViews(NotificationData.Entry entry, ViewGroup parent) {
439+
int rowHeight =
440+
mContext.getResources().getDimensionPixelSize(R.dimen.notification_height);
439441
int minHeight =
440442
mContext.getResources().getDimensionPixelSize(R.dimen.notification_min_height);
441443
int maxHeight =
@@ -462,7 +464,7 @@ protected boolean inflateViews(NotificationData.Entry entry, ViewGroup parent)
462464
lp.height = ViewGroup.LayoutParams.WRAP_CONTENT;
463465
expandable = Boolean.TRUE;
464466
} else {
465-
lp.height = minHeight;
467+
lp.height = rowHeight;
466468
}
467469
row.setLayoutParams(lp);
468470
row.setTag(R.id.expandable_tag, expandable);

0 commit comments

Comments
 (0)