mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
Added imports to SettingsActivity
According to IntelliJ suggestion
This commit is contained in:
parent
8434cd78de
commit
3397e2eef4
1 changed files with 6 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
package fr.free.nrw.commons;
|
||||
package org.wikimedia.commons;
|
||||
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
|
|
@ -8,6 +8,10 @@ import android.preference.Preference;
|
|||
import android.preference.PreferenceManager;
|
||||
import android.util.Log;
|
||||
import com.actionbarsherlock.app.SherlockPreferenceActivity;
|
||||
import fr.free.nrw.commons.*;
|
||||
import fr.free.nrw.commons.CommonsApplication;
|
||||
import fr.free.nrw.commons.Prefs;
|
||||
import fr.free.nrw.commons.Utils;
|
||||
|
||||
public class SettingsActivity extends SherlockPreferenceActivity implements SharedPreferences.OnSharedPreferenceChangeListener {
|
||||
CommonsApplication app;
|
||||
|
|
@ -56,7 +60,7 @@ public class SettingsActivity extends SherlockPreferenceActivity implements Shar
|
|||
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)
|
||||
fr.free.nrw.commons.EventLog.schema(CommonsApplication.EVENT_EVENTLOGGING_CHANGE)
|
||||
.param("username", app.getCurrentAccount().name)
|
||||
.param("state", sharedPreferences.getBoolean(key, true))
|
||||
.log(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue