[DO NOT MERGE] Update to use new res status bar height dimen

Use new status_bar_height_default for
SystemBarUtils.getStatsusBarHeightForRotation().

Bug: 216782082
Test: make
Change-Id: I6376169bfeb470de5dc820b9c3633c64981079f0
This commit is contained in:
shawnlin
2022-04-11 15:00:55 +08:00
parent d4cb37a7d3
commit 47fb15fe8c

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