am ed5cc0e1: revert I057b7ac0 now that the layouts are the expected height.
* commit 'ed5cc0e1f7648962f5c93e1277d282be75bcd537': revert I057b7ac0 now that the layouts are the expected height.
This commit is contained in:
@@ -53,6 +53,7 @@ public class SizeAdaptiveLayout extends ViewGroup {
|
||||
|
||||
private static final String TAG = "SizeAdaptiveLayout";
|
||||
private static final boolean DEBUG = false;
|
||||
private static final boolean REPORT_BAD_BOUNDS = true;
|
||||
private static final long CROSSFADE_TIME = 250;
|
||||
|
||||
// TypedArray indices
|
||||
@@ -175,7 +176,7 @@ public class SizeAdaptiveLayout extends ViewGroup {
|
||||
height = Math.min(height, lp.maxHeight);
|
||||
}
|
||||
|
||||
if (DEBUG && heightIn != height) {
|
||||
if (REPORT_BAD_BOUNDS && heightIn != height) {
|
||||
Log.d(TAG, this + "child view " + child + " " +
|
||||
"measured out of bounds at " + heightIn +"px " +
|
||||
"clamped to " + height + "px");
|
||||
|
||||
@@ -561,14 +561,14 @@ public abstract class BaseStatusBar extends SystemUI implements
|
||||
if (expandedOneU != null) {
|
||||
SizeAdaptiveLayout.LayoutParams params =
|
||||
new SizeAdaptiveLayout.LayoutParams(expandedOneU.getLayoutParams());
|
||||
params.minHeight = rowHeight;
|
||||
params.maxHeight = rowHeight;
|
||||
params.minHeight = minHeight;
|
||||
params.maxHeight = minHeight;
|
||||
adaptive.addView(expandedOneU, params);
|
||||
}
|
||||
if (expandedLarge != null) {
|
||||
SizeAdaptiveLayout.LayoutParams params =
|
||||
new SizeAdaptiveLayout.LayoutParams(expandedLarge.getLayoutParams());
|
||||
params.minHeight = rowHeight+1;
|
||||
params.minHeight = minHeight+1;
|
||||
params.maxHeight = maxHeight;
|
||||
adaptive.addView(expandedLarge, params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user