fbsource//xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor:perfmonitorAndroid (#53703)

Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53703

Reviewed By: cortinico

Differential Revision: D82096539
This commit is contained in:
CodemodService Bot
2025-09-11 02:37:19 -07:00
committed by Facebook GitHub Bot
parent dab8a45623
commit 08803fbad7
@@ -279,12 +279,12 @@ internal class PerfMonitorOverlayView(
}
private fun getMetricsDialogOffsetX(): Float {
val toolbarWidth = toolbarDialog?.window?.decorView?.width ?: 0
val toolbarWidth = toolbarDialog.window?.decorView?.width ?: 0
return toolbarWidth.toFloat()
}
private fun updateMetricsDialogPosition() {
metricsDialog?.window?.apply {
metricsDialog.window?.apply {
attributes = attributes?.apply { x = getMetricsDialogOffsetX().toInt() }
}
}