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

Commit 937b20cf authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update QS top padding to use centralizedStatusBarHeight refactor" into main

parents 47068c2b 97d57d14
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@ package com.android.systemui.qs;
import static android.app.StatusBarManager.DISABLE2_QUICK_SETTINGS;
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;

import static com.android.systemui.Flags.centralizedStatusBarHeightFix;

import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
@@ -27,6 +29,7 @@ import android.view.ViewGroup;
import android.widget.FrameLayout;

import com.android.systemui.res.R;
import com.android.systemui.shade.LargeScreenHeaderHelper;
import com.android.systemui.util.LargeScreenUtils;

/**
@@ -97,7 +100,9 @@ public class QuickStatusBarHeader extends FrameLayout {
            qqsLP.topMargin = mContext.getResources()
                    .getDimensionPixelSize(R.dimen.qqs_layout_margin_top);
        } else {
            qqsLP.topMargin = mContext.getResources()
            qqsLP.topMargin = centralizedStatusBarHeightFix()
                    ? LargeScreenHeaderHelper.getLargeScreenHeaderHeight(mContext)
                    : mContext.getResources()
                    .getDimensionPixelSize(R.dimen.large_screen_shade_header_min_height);
        }
        mHeaderQsPanel.setLayoutParams(qqsLP);