Simplification

pull/194/merge
M66B 3 years ago
parent 9f1fd3bd1f
commit 3e0e00c418

@ -223,15 +223,12 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
else
super.onMeasure(widthMeasureSpec, heightMeasureSpec); // Unspecified
} else {
if (height > getMinimumHeight())
super.onMeasure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(Math.min(height, maxHeight), MeasureSpec.AT_MOST));
else
super.onMeasure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST));
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
}
int mh = getMeasuredHeight();
Log.i("Measured height=" + mh + " last=" + height + "/" + maxHeight + " ch=" + getContentHeight());
if (mh == 0)
if (mh == 0 && legacy)
setMeasuredDimension(getMeasuredWidth(), height);
}

Loading…
Cancel
Save