You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Pull Request resolved: #53957
There are cases where the overlay can get enabled multiple times, creating more than one view. This change no-ops enabling if the overlay is already enabled and just uses enable/disable for showing/hiding the view.
{F1982272836}
Changelog: [Internal]
Reviewed By: hoxyq
Differential Revision: D83275253
fbshipit-source-id: 4b468171a582e134071875f718c66d1659d67782
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorOverlayManager.kt
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,18 +20,25 @@ internal class PerfMonitorOverlayManager(
20
20
21
21
/** Enable the Perf Monitor overlay. */
22
22
funenable() {
23
+
if (enabled) {
24
+
return
25
+
}
26
+
23
27
enabled =true
24
28
UiThreadUtil.runOnUiThread {
25
29
val context = devHelper.currentActivity ?:return@runOnUiThread
0 commit comments