Don't show task notes by default

pull/14/head
Sam Bosley 14 years ago
parent 9cb843edb4
commit 0ba1a689a0

@ -24,7 +24,7 @@ public class NotesDecorationExposer implements TaskDecorationExposer {
@Override
public TaskDecoration expose(Task task) {
if(Preferences.getBoolean(R.string.p_showNotes, true))
if(Preferences.getBoolean(R.string.p_showNotes, false))
return null;
if(task == null || !NotesPlugin.hasNotes(task))
return null;

@ -51,7 +51,7 @@ public class NotesDetailExposer extends BroadcastReceiver {
@SuppressWarnings("nls")
public String getTaskDetails(long id) {
if(!Preferences.getBoolean(R.string.p_showNotes, true))
if(!Preferences.getBoolean(R.string.p_showNotes, false))
return null;
Task task = PluginServices.getTaskService().fetchById(id, Task.ID, Task.NOTES);

@ -19,7 +19,7 @@
<com.todoroo.astrid.ui.MultilineCheckboxPreference
android:key="@string/p_showNotes"
android:title="@string/EPr_showNotes_title"
android:defaultValue="true" />
android:defaultValue="false" />
<com.todoroo.astrid.ui.MultilineListPreference
android:key="@string/p_theme"

@ -131,7 +131,7 @@ public final class UpgradeService {
if(from < V3_8_3_1)
new TagCaseMigrator().performTagCaseMigration(context);
if(from < V3_8_4 && Preferences.getBoolean(R.string.p_showNotes, true))
if(from < V3_8_4 && Preferences.getBoolean(R.string.p_showNotes, false))
taskService.clearDetails(Task.NOTES.neq("")); //$NON-NLS-1$
} finally {
DialogUtilities.dismissDialog((Activity)context, dialog);

@ -36,7 +36,7 @@ public class AstridPreferences {
Preferences.setIfUnset(prefs, editor, r, R.string.p_default_reminders_key, Task.NOTIFY_AT_DEADLINE | Task.NOTIFY_AFTER_DEADLINE);
Preferences.setIfUnset(prefs, editor, r, R.string.p_rmd_default_random_hours, 0);
Preferences.setIfUnset(prefs, editor, r, R.string.p_fontSize, 20);
Preferences.setIfUnset(prefs, editor, r, R.string.p_showNotes, true);
Preferences.setIfUnset(prefs, editor, r, R.string.p_showNotes, false);
editor.commit();
}

Loading…
Cancel
Save