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:
committed by
Facebook GitHub Bot
parent
4d5bf8084b
commit
a46b7c2e78
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user