Merge "Set default rotation in StatusBarWindowView to -1" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7058816828
@@ -66,7 +66,7 @@ public class PhoneStatusBarView extends PanelBar {
|
||||
}
|
||||
};
|
||||
private DarkReceiver mBattery;
|
||||
private int mRotationOrientation;
|
||||
private int mRotationOrientation = -1;
|
||||
@Nullable
|
||||
private View mCenterIconSpace;
|
||||
@Nullable
|
||||
|
||||
@@ -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<>(
|
||||
|
||||
Reference in New Issue
Block a user