mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
VirtualView: Fix Window Focus Detection Cleanup (#52621)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52621 In D77261958, I made a typo when implementing the cleanup of window focus detection in `onDetachedFromWindow`. This fixes it. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D78366506 fbshipit-source-id: 2a377cd7e8ec08f0c899dbd9cb3757bec580d30f
This commit is contained in:
1 parent
46f3e32019
commit
5050d0a89e
1 file changed
+1
-1
+1
-1
@@ -101,7 +101,7 @@ public class ReactVirtualView(context: Context) :
|
||||
ReactScrollViewHelper.removeScrollListener(this)
|
||||
ReactScrollViewHelper.removeLayoutChangeListener(this)
|
||||
if (detectWindowFocus) {
|
||||
viewTreeObserver.addOnWindowFocusChangeListener(onWindowFocusChangeListener)
|
||||
viewTreeObserver.removeOnWindowFocusChangeListener(onWindowFocusChangeListener)
|
||||
}
|
||||
cleanupLayoutListeners()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user