[automerge] [DO NOT MERGE] Update to use new res status bar height dimen 2p: 47fb15fe8c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17686875

Bug: 216782082
Change-Id: Ia9c43342665872f3a76742c301f8532a20bdc0f7
This commit is contained in:
shawnlin
2022-04-11 07:10:32 +00:00
committed by Presubmit Automerger Backend

View File

@@ -73,7 +73,7 @@ public final class SystemBarUtils {
}
}
final int defaultSize =
context.getResources().getDimensionPixelSize(R.dimen.status_bar_height);
context.getResources().getDimensionPixelSize(R.dimen.status_bar_height_default);
// The status bar height should be:
// Max(top cutout size, (status bar default height + waterfall top size))
return Math.max(insets.top, defaultSize + waterfallInsets.top);