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:
committed by
Facebook Github Bot
parent
2f6508ca03
commit
1edffabd05
@@ -44,7 +44,7 @@ public class MyApplication extends Application {
|
|||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
|
||||||
if (BuildConfig.DEBUG && SonarUtils.isMainProcess(mApplicationContext)) {
|
if (BuildConfig.DEBUG && SonarUtils.shouldEnableSonar(this)) {
|
||||||
final SonarClient client = AndroidSonarClient.getInstance(this);
|
final SonarClient client = AndroidSonarClient.getInstance(this);
|
||||||
client.addPlugin(new MySonarPlugin());
|
client.addPlugin(new MySonarPlugin());
|
||||||
client.start();
|
client.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user