Merge "Remove the shadow under url bar." into froyo
This commit is contained in:
@ -3101,12 +3101,12 @@ public class WebView extends AbsoluteLayout
|
|||||||
canvas.restoreToCount(saveCount);
|
canvas.restoreToCount(saveCount);
|
||||||
|
|
||||||
// Now draw the shadow.
|
// Now draw the shadow.
|
||||||
if (mTitleBar != null) {
|
int titleH = getVisibleTitleHeight();
|
||||||
int y = mScrollY + getVisibleTitleHeight();
|
if (mTitleBar != null && titleH == 0) {
|
||||||
int height = (int) (5f * getContext().getResources()
|
int height = (int) (5f * getContext().getResources()
|
||||||
.getDisplayMetrics().density);
|
.getDisplayMetrics().density);
|
||||||
mTitleShadow.setBounds(mScrollX, y, mScrollX + getWidth(),
|
mTitleShadow.setBounds(mScrollX, mScrollY, mScrollX + getWidth(),
|
||||||
y + height);
|
mScrollY + height);
|
||||||
mTitleShadow.draw(canvas);
|
mTitleShadow.draw(canvas);
|
||||||
}
|
}
|
||||||
if (AUTO_REDRAW_HACK && mAutoRedraw) {
|
if (AUTO_REDRAW_HACK && mAutoRedraw) {
|
||||||
|
Reference in New Issue
Block a user