Firebase follow privacy setting

This commit is contained in:
Milos Kozak 2019-12-25 10:11:14 +01:00
parent f8f1fc54be
commit 48e8888b82

View file

@ -162,7 +162,7 @@ public class MainApp extends DaggerApplication {
registerActivityLifecycleCallbacks(ActivityMonitor.INSTANCE);
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
mFirebaseAnalytics.setAnalyticsCollectionEnabled(!Boolean.getBoolean("disableFirebase"));
mFirebaseAnalytics.setAnalyticsCollectionEnabled(!Boolean.getBoolean("disableFirebase") && FabricPrivacy.fabricEnabled());
JodaTimeAndroid.init(this);