mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	Removed usage reports in Settings layout file as well as code behind it
Fixes issue #11
This commit is contained in:
		
							parent
							
								
									5765c99704
								
							
						
					
					
						commit
						bd0dfdc961
					
				
					 3 changed files with 2 additions and 14 deletions
				
			
		|  | @ -1,12 +1,7 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| 
 | ||||
| <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <CheckBoxPreference | ||||
|         android:key="eventLogging" | ||||
|         android:title="@string/preference_tracking" | ||||
|         android:summary="@string/preference_tracking_summary" | ||||
|         android:defaultValue="false" | ||||
|         /> | ||||
| 
 | ||||
|     <ListPreference | ||||
|         android:key="defaultLicense" | ||||
|         android:title="@string/preference_license" | ||||
|  |  | |||
|  | @ -58,7 +58,7 @@ public class CommonsApplication extends Application { | |||
|     public static final Object[] EVENT_LOGIN_ATTEMPT = {"MobileAppLoginAttempts", 5257721L}; | ||||
|     public static final Object[] EVENT_SHARE_ATTEMPT = {"MobileAppShareAttempts", 5346170L}; | ||||
|     public static final Object[] EVENT_CATEGORIZATION_ATTEMPT = {"MobileAppCategorizationAttempts", 5359208L}; | ||||
|     public static final Object[] EVENT_EVENTLOGGING_CHANGE = {"MobileAppTrackingChange", 5369400L}; | ||||
| 
 | ||||
| 
 | ||||
|     public static final String DEFAULT_EDIT_SUMMARY = "Uploaded using Android Commons app"; | ||||
| 
 | ||||
|  |  | |||
|  | @ -52,13 +52,6 @@ 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) | ||||
|                     .param("username", app.getCurrentAccount().name) | ||||
|                     .param("state", sharedPreferences.getBoolean(key, true)) | ||||
|                     .log(true); | ||||
|         } | ||||
| 
 | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan