Skip to content

Commit 70b40c4

Browse files
committed
Use isEdgeToEdge instead of isEdgeToEdgeFeatureFlagOn
1 parent dad4ed8 commit 70b40c4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ private void checkForKeyboardEventsLegacy() {
10341034
heightPixels = WindowMetricsCalculator.getOrCreate()
10351035
.computeCurrentWindowMetrics(activity).getBounds().height();
10361036

1037-
if (!WindowUtilKt.isEdgeToEdgeFeatureFlagOn()) {
1037+
if (!WindowUtilKt.isEdgeToEdge()) {
10381038
WindowInsetsCompat rootWindowInsets =
10391039
ViewCompat.getRootWindowInsets(activity.getWindow().getDecorView());
10401040

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ internal class DeviceInfoModule(reactContext: ReactApplicationContext) :
4747

4848
// WindowMetrics bounds include system bars. When edge-to-edge is not enabled, we subtract them
4949
// so that window dimensions reflect the usable content area.
50-
if (!isEdgeToEdgeFeatureFlagOn) {
50+
if (!isEdgeToEdge) {
5151
ViewCompat.getRootWindowInsets(activity.window.decorView)?.let {
5252
val insets = it.getInsets(WindowInsetsCompat.Type.systemBars())
5353
width -= (insets.left + insets.right)

0 commit comments

Comments
 (0)