* commit '85fae34e8146eaa25aea7f1d9a68effa0db3ce8e': Fix wrongly laid out navigation color view
This commit is contained in:
@@ -3010,16 +3010,16 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
|
|||||||
int vis = show ? VISIBLE : INVISIBLE;
|
int vis = show ? VISIBLE : INVISIBLE;
|
||||||
visibilityChanged = state.targetVisibility != vis;
|
visibilityChanged = state.targetVisibility != vis;
|
||||||
state.targetVisibility = vis;
|
state.targetVisibility = vis;
|
||||||
|
LayoutParams lp = (LayoutParams) view.getLayoutParams();
|
||||||
|
if (lp.height != resolvedHeight || lp.width != resolvedWidth
|
||||||
|
|| lp.gravity != resolvedGravity || lp.rightMargin != rightMargin) {
|
||||||
|
lp.height = resolvedHeight;
|
||||||
|
lp.width = resolvedWidth;
|
||||||
|
lp.gravity = resolvedGravity;
|
||||||
|
lp.rightMargin = rightMargin;
|
||||||
|
view.setLayoutParams(lp);
|
||||||
|
}
|
||||||
if (show) {
|
if (show) {
|
||||||
LayoutParams lp = (LayoutParams) view.getLayoutParams();
|
|
||||||
if (lp.height != resolvedHeight || lp.width != resolvedWidth
|
|
||||||
|| lp.gravity != resolvedGravity || lp.rightMargin != rightMargin) {
|
|
||||||
lp.height = resolvedHeight;
|
|
||||||
lp.width = resolvedWidth;
|
|
||||||
lp.gravity = resolvedGravity;
|
|
||||||
lp.rightMargin = rightMargin;
|
|
||||||
view.setLayoutParams(lp);
|
|
||||||
}
|
|
||||||
view.setBackgroundColor(color);
|
view.setBackgroundColor(color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user