add (coarse!) analytics for preferences

This commit is contained in:
Vincent Breitmoser
2018-07-17 15:44:14 +02:00
parent fcf6abfec3
commit 3f4de8b9c6
3 changed files with 58 additions and 2 deletions

View File

@@ -20,7 +20,6 @@ package org.sufficientlysecure.keychain.util;
import java.net.Proxy;
import java.util.ArrayList;
import java.util.Date;
import java.util.ListIterator;
import android.annotation.SuppressLint;
@@ -34,6 +33,7 @@ import android.support.annotation.Nullable;
import com.google.auto.value.AutoValue;
import org.sufficientlysecure.keychain.Constants;
import org.sufficientlysecure.keychain.Constants.Pref;
import org.sufficientlysecure.keychain.analytics.AnalyticsManager;
import org.sufficientlysecure.keychain.keyimport.HkpKeyserverAddress;
import timber.log.Timber;
@@ -82,6 +82,10 @@ public class Preferences {
mSharedPreferences = context.getSharedPreferences(PREF_FILE_NAME, PREF_FILE_MODE);
}
public SharedPreferences getSharedPreferences() {
return mSharedPreferences;
}
public String getLanguage() {
return mSharedPreferences.getString(Constants.Pref.LANGUAGE, "");
}