Merge changes from topic "sbHeight" into sc-v2-dev-plus-aosp

* changes:
  [automerge] [DO NOT MERGE] Update to use new res status bar height dimen 2p: 47fb15fe8c
  [DO NOT MERGE] Update to use new res status bar height dimen
This commit is contained in:
Shawn Lin
2022-04-12 02:14:40 +00:00
committed by Android (Google) Code Review

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);