Fix broken tablet layout of QS on lockscreen

Bug: 15536406
Change-Id: I6c075d0875cf78dff1938b5cfd49e6b1924bcc99
This commit is contained in:
Adrian Roos
2014-06-10 19:42:47 +02:00
parent ac383e52a9
commit 13dee43e6f

View File

@@ -138,6 +138,7 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL
updateBrightnessControllerState();
updateZTranslation();
updateClickTargets();
updateWidth();
if (mQSPanel != null) {
mQSPanel.setExpanded(expanded && !overscrolled);
}
@@ -173,7 +174,7 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL
}
private void updateWidth() {
int width = mKeyguardShowing ? mKeyguardWidth : mNormalWidth;
int width = (mKeyguardShowing && !mExpanded) ? mKeyguardWidth : mNormalWidth;
ViewGroup.LayoutParams lp = getLayoutParams();
if (width != lp.width) {
lp.width = width;