Removed Prefs.TRACKING_ENABLED condition in SettingsActivity.java

This commit is contained in:
Josephine Lim 2015-10-04 23:58:08 +13:00
parent 234c7ccd48
commit 23c73ab45a

View file

@ -54,13 +54,6 @@ public class SettingsActivity extends SherlockPreferenceActivity implements Shar
} }
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if(key.equals(Prefs.TRACKING_ENABLED)) {
// We force log this, so it is logged even if EL is turned off
EventLog.schema(CommonsApplication.EVENT_EVENTLOGGING_CHANGE)
.param("username", app.getCurrentAccount().name)
.param("state", sharedPreferences.getBoolean(key, true))
.log(true);
}
} }
} }