Skip to content

Commit ed5cc0e

Browse files
committed
revert I057b7ac0 now that the layouts are the expected height.
Bug: 6546766 Change-Id: I736290b897b864228ecc3e46d86ef566efda1efd
1 parent d5353b4 commit ed5cc0e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

core/java/com/android/internal/widget/SizeAdaptiveLayout.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public class SizeAdaptiveLayout extends ViewGroup {
5353

5454
private static final String TAG = "SizeAdaptiveLayout";
5555
private static final boolean DEBUG = false;
56+
private static final boolean REPORT_BAD_BOUNDS = true;
5657
private static final long CROSSFADE_TIME = 250;
5758

5859
// TypedArray indices
@@ -175,7 +176,7 @@ private int clampSizeToBounds(int measuredHeight, View child) {
175176
height = Math.min(height, lp.maxHeight);
176177
}
177178

178-
if (DEBUG && heightIn != height) {
179+
if (REPORT_BAD_BOUNDS && heightIn != height) {
179180
Log.d(TAG, this + "child view " + child + " " +
180181
"measured out of bounds at " + heightIn +"px " +
181182
"clamped to " + height + "px");

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,14 +561,14 @@ protected boolean inflateViews(NotificationData.Entry entry, ViewGroup parent)
561561
if (expandedOneU != null) {
562562
SizeAdaptiveLayout.LayoutParams params =
563563
new SizeAdaptiveLayout.LayoutParams(expandedOneU.getLayoutParams());
564-
params.minHeight = rowHeight;
565-
params.maxHeight = rowHeight;
564+
params.minHeight = minHeight;
565+
params.maxHeight = minHeight;
566566
adaptive.addView(expandedOneU, params);
567567
}
568568
if (expandedLarge != null) {
569569
SizeAdaptiveLayout.LayoutParams params =
570570
new SizeAdaptiveLayout.LayoutParams(expandedLarge.getLayoutParams());
571-
params.minHeight = rowHeight+1;
571+
params.minHeight = minHeight+1;
572572
params.maxHeight = maxHeight;
573573
adaptive.addView(expandedLarge, params);
574574
}

0 commit comments

Comments
 (0)