Skip to content

Commit 946ca3c

Browse files
committed
Add comment
1 parent 8c427b6 commit 946ca3c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ public object DisplayMetricsHolder {
2929
@JvmStatic private var windowDisplayMetrics: DisplayMetrics? = null
3030
@JvmStatic private var screenDisplayMetrics: DisplayMetrics? = null
3131

32+
// TODO(0.87): Remove once we are out of the non-breaking window (see 8d21ffda60)
3233
/** The metrics of the window associated to the Context used to initialize ReactNative */
3334
@JvmStatic
3435
public fun getWindowDisplayMetrics(): DisplayMetrics {
3536
checkNotNull(windowDisplayMetrics) { INITIALIZATION_MISSING_MESSAGE }
3637
return windowDisplayMetrics as DisplayMetrics
3738
}
3839

40+
// TODO(0.87): Remove once we are out of the non-breaking window (see 8d21ffda60)
3941
@JvmStatic
4042
public fun setWindowDisplayMetrics(displayMetrics: DisplayMetrics?) {
4143
windowDisplayMetrics = displayMetrics
@@ -84,6 +86,7 @@ public object DisplayMetricsHolder {
8486
DisplayMetricsHolder.screenDisplayMetrics = screenDisplayMetrics
8587
}
8688

89+
// TODO(0.87): Remove once we are out of the non-breaking window (see 8d21ffda60)
8790
@JvmStatic
8891
public fun getDisplayMetricsWritableMap(fontScale: Double): WritableMap {
8992
checkNotNull(windowDisplayMetrics) { INITIALIZATION_MISSING_MESSAGE }

0 commit comments

Comments
 (0)