Fix broken tablet layout of QS on lockscreen
Bug: 15536406 Change-Id: I6c075d0875cf78dff1938b5cfd49e6b1924bcc99
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user