Crittercism opt out

pull/14/head
Sam Bosley 14 years ago
parent 79d5bf9dd5
commit af1cbcf184

@ -27,6 +27,6 @@
<classpathentry exported="true" kind="lib" path="libs/gson-1.6.jar"/>
<classpathentry exported="true" kind="lib" path="libs/google-api-services-tasks-v1-1.2.5-beta.jar"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="lib" path="libs/crittercism_v1_1_1.jar"/>
<classpathentry kind="lib" path="libs/crittercism_v1_1_3.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

@ -348,10 +348,9 @@ public class EditPreferences extends TodorooPreferenceActivity {
public boolean onPreferenceChange(Preference preference, Object newValue) {
Boolean value = (Boolean) newValue;
if (!value.booleanValue()) {
//Crittercism.shutDown();
Crittercism.setOptOutStatus(true);
} else {
Crittercism.init(getApplicationContext(), Constants.CRITTERCISM_APP_ID,
Constants.CRITTERCISM_OATH_KEY, Constants.CRITTERCISM_SECRET);
Crittercism.setOptOutStatus(false);
}
return true;
}

@ -111,10 +111,8 @@ public class StartupService {
// sets up context manager
ContextManager.setContext(context);
if (!StatisticsService.dontCollectStatistics()) {
Crittercism.init(context.getApplicationContext(), Constants.CRITTERCISM_APP_ID,
Constants.CRITTERCISM_OATH_KEY, Constants.CRITTERCISM_SECRET);
}
Crittercism.init(context.getApplicationContext(), Constants.CRITTERCISM_APP_ID,
Constants.CRITTERCISM_OATH_KEY, Constants.CRITTERCISM_SECRET, StatisticsService.dontCollectStatistics());
// show notification if reminders are silenced
if(context instanceof Activity) {

Loading…
Cancel
Save