Fix height of keyguard status bar

The keyguard status bar was getting set to the height of the regular
status bar, and aligning itself with the top of the screen, causing
alignment issues

Test: visual
Change-Id: I5d75f89585010dc73bdedb133246412704706c64
Fixes: 77563515
This commit is contained in:
Evan Laird
2018-05-11 17:16:17 -04:00
parent 4ee9b14c14
commit 5abb8d118d
2 changed files with 2 additions and 7 deletions

View File

@@ -23,6 +23,7 @@
android:layout_width="match_parent"
android:layout_height="@dimen/status_bar_header_height_keyguard"
android:baselineAligned="false"
android:gravity="center_vertical"
>
<LinearLayout
@@ -33,7 +34,7 @@
android:gravity="center_vertical|end" >
<FrameLayout android:id="@+id/system_icons_container"
android:layout_width="0dp"
android:layout_height="@dimen/status_bar_height"
android:layout_height="match_parent"
android:layout_weight="1"
android:layout_marginStart="@dimen/system_icons_super_container_margin_start"
android:gravity="center_vertical|end"

View File

@@ -128,13 +128,7 @@ public class KeyguardStatusBarView extends RelativeLayout
mMultiUserSwitch.setLayoutParams(lp);
// System icons
lp = (MarginLayoutParams) mStatusIconArea.getLayoutParams();
lp.height = getResources().getDimensionPixelSize(
com.android.internal.R.dimen.status_bar_height);
lp = (MarginLayoutParams) mSystemIconsContainer.getLayoutParams();
lp.height = getResources().getDimensionPixelSize(
R.dimen.status_bar_height);
lp.setMarginStart(getResources().getDimensionPixelSize(
R.dimen.system_icons_super_container_margin_start));
mSystemIconsContainer.setLayoutParams(lp);