Fix example code on setup leakCanary plugin (#4566)

Summary:
Fix sample for install leak canary plugin

## Changelog

add brackets on sample code

Pull Request resolved: https://github.com/facebook/flipper/pull/4566

Test Plan: -

Reviewed By: antonk52

Differential Revision: D43766946

Pulled By: passy

fbshipit-source-id: 4bded0122330ab4186745a9f5b2dcbd511318ee3
This commit is contained in:
Vova-SH
2023-03-03 10:38:42 -08:00
committed by Facebook GitHub Bot
parent 4d5bf8084b
commit a46b7c2e78

View File

@@ -28,7 +28,7 @@ import com.facebook.flipper.plugins.leakcanary2.LeakCanary2FlipperPlugin
set the flipper listener in leak canary config
*/
LeakCanary.config = LeakCanary.config.run {
copy(eventListeners = eventListeners + FlipperLeakEventListener)
copy(eventListeners = eventListeners + FlipperLeakEventListener())
}
SoLoader.init(this, false)