Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5abb8d11 authored by Evan Laird's avatar Evan Laird
Browse files

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
parent 4ee9b14c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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"
+0 −6
Original line number Diff line number Diff line
@@ -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);