From 0ba1a689a0af112ed9b38510dd0896147bd058a3 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 15 Dec 2011 17:11:43 -0800 Subject: [PATCH] Don't show task notes by default --- .../com/todoroo/astrid/notes/NotesDecorationExposer.java | 2 +- .../plugin-src/com/todoroo/astrid/notes/NotesDetailExposer.java | 2 +- astrid/res/xml/preferences.xml | 2 +- astrid/src/com/todoroo/astrid/service/UpgradeService.java | 2 +- astrid/src/com/todoroo/astrid/utility/AstridPreferences.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/notes/NotesDecorationExposer.java b/astrid/plugin-src/com/todoroo/astrid/notes/NotesDecorationExposer.java index 2359c6c4f..1c69a60d4 100644 --- a/astrid/plugin-src/com/todoroo/astrid/notes/NotesDecorationExposer.java +++ b/astrid/plugin-src/com/todoroo/astrid/notes/NotesDecorationExposer.java @@ -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; diff --git a/astrid/plugin-src/com/todoroo/astrid/notes/NotesDetailExposer.java b/astrid/plugin-src/com/todoroo/astrid/notes/NotesDetailExposer.java index eeaab2bfc..e216c5713 100644 --- a/astrid/plugin-src/com/todoroo/astrid/notes/NotesDetailExposer.java +++ b/astrid/plugin-src/com/todoroo/astrid/notes/NotesDetailExposer.java @@ -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); diff --git a/astrid/res/xml/preferences.xml b/astrid/res/xml/preferences.xml index ae19119c5..656fc2d26 100644 --- a/astrid/res/xml/preferences.xml +++ b/astrid/res/xml/preferences.xml @@ -19,7 +19,7 @@ + android:defaultValue="false" />