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

Commit f4f96380 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Set default rotation in StatusBarWindowView to -1" into rvc-dev am: 70588168

Change-Id: Iac8618c50ee1469d5f6d158ea67bafba60f08e21
parents 9de3c6a2 70588168
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ public class PhoneStatusBarView extends PanelBar {
        }
    };
    private DarkReceiver mBattery;
    private int mRotationOrientation;
    private int mRotationOrientation = -1;
    @Nullable
    private View mCenterIconSpace;
    @Nullable
+5 −4
Original line number Diff line number Diff line
@@ -99,11 +99,12 @@ public class StatusBarWindowView extends FrameLayout {
        }

        // padding needed for corner cutout.
        int leftCornerCutoutPadding = 0;
        int rightCornerCutoutPadding = 0;
        int leftCornerCutoutPadding = cutout.getSafeInsetLeft();
        int rightCornerCutoutPadding = cutout.getSafeInsetRight();
        if (cornerCutoutPadding != null) {
            leftCornerCutoutPadding = cornerCutoutPadding.first;
            rightCornerCutoutPadding = cornerCutoutPadding.second;
            leftCornerCutoutPadding = Math.max(leftCornerCutoutPadding, cornerCutoutPadding.first);
            rightCornerCutoutPadding = Math.max(rightCornerCutoutPadding,
                    cornerCutoutPadding.second);
        }

        return new Pair<>(