From 1edffabd05012e8e96554ad60045b6d8dfde611e Mon Sep 17 00:00:00 2001 From: Andrei Verdes Date: Tue, 12 Jun 2018 06:31:52 -0700 Subject: [PATCH] Fix GH-22 wrong method for Android docs (#23) Summary: As per GH-14 comment, the docs were pointing to an internal `private` method to check if `Sonar` should be enabled Closes https://github.com/facebook/Sonar/pull/23 Reviewed By: danielbuechele Differential Revision: D8379336 Pulled By: jknoxville fbshipit-source-id: bc580dc40a1994a2f4a30544d77f86b60e9353f6 --- docs/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 452e25df1..f4900bd81 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -44,7 +44,7 @@ public class MyApplication extends Application { public void onCreate() { super.onCreate(); - if (BuildConfig.DEBUG && SonarUtils.isMainProcess(mApplicationContext)) { + if (BuildConfig.DEBUG && SonarUtils.shouldEnableSonar(this)) { final SonarClient client = AndroidSonarClient.getInstance(this); client.addPlugin(new MySonarPlugin()); client.start();