File tree Expand file tree Collapse file tree
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments