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
This commit is contained in:
Andrei Verdes
2018-06-12 06:31:52 -07:00
committed by Facebook Github Bot
parent 2f6508ca03
commit 1edffabd05

View File

@@ -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();