Disable analytics in gplay edition too

This commit is contained in:
Mario Danic 2017-04-26 21:56:11 +02:00
parent 5ecf2ea541
commit 52e2c42df5

View file

@ -21,12 +21,15 @@ package com.owncloud.android.utils;
import android.app.Activity;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.owncloud.android.MainApp;
public class AnalyticsUtils {
public static void setCurrentScreenName(Activity activity, String s, String s1) {
// do nothing
}
public static void disableAnalytics() {
// do nothing
FirebaseAnalytics.getInstance(MainApp.getAppContext()).setAnalyticsCollectionEnabled(false);
}
}