From 48e8888b82756ceb8131c2e57ef26f60f5689afb Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 25 Dec 2019 10:11:14 +0100 Subject: [PATCH] Firebase follow privacy setting --- app/src/main/java/info/nightscout/androidaps/MainApp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/MainApp.java b/app/src/main/java/info/nightscout/androidaps/MainApp.java index 7d743cbf7d..370ce47b22 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainApp.java +++ b/app/src/main/java/info/nightscout/androidaps/MainApp.java @@ -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);