Skip to content

Commit 09a7e0a

Browse files
huntiefacebook-github-bot
authored andcommitted
Restore NOT_FOCUSABLE flag on Perf Monitor overlay (#53754)
Summary: Pull Request resolved: #53754 Fix following D82302063. Changelog: [Internal] Reviewed By: hoxyq Differential Revision: D82311593 fbshipit-source-id: 07305c8d3fdbd9199662e20a813ccfbf46e6491b
1 parent 4fb42c8 commit 09a7e0a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorOverlayView.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,14 @@ internal class PerfMonitorOverlayView(
106106
containerLayout.addView(statusIndicator)
107107
containerLayout.addView(textContainer)
108108

109-
return createAnchoredDialog(dpToPx(12f), dpToPx(12f)).apply { setContentView(containerLayout) }
109+
val dialog =
110+
createAnchoredDialog(dpToPx(12f), dpToPx(12f)).apply { setContentView(containerLayout) }
111+
dialog.window?.apply {
112+
attributes =
113+
attributes?.apply { flags = flags or WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE }
114+
}
115+
116+
return dialog
110117
}
111118

112119
private fun createAnchoredDialog(offsetX: Float, offsetY: Float): Dialog {

0 commit comments

Comments
 (0)