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

Commit 30a9ef51 authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

Merge "Restore status bar on phones."

parents df0d966d 631cb3d5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -781,8 +781,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        // Determine whether the status bar can hide based on the size
        // of the screen.  We assume sizes > 600dp are tablets where we
        // will use the system bar.
        int shortSizeDp = (shortSize*DisplayMetrics.DENSITY_DEVICE)
                / DisplayMetrics.DENSITY_DEFAULT;
        int shortSizeDp = shortSize
                * DisplayMetrics.DENSITY_DEFAULT
                / DisplayMetrics.DENSITY_DEVICE;
        mStatusBarCanHide = shortSizeDp < 600;
        mStatusBarHeight = mContext.getResources().getDimensionPixelSize(
                mStatusBarCanHide