diff --git a/astrid/plugin-src/com/todoroo/astrid/notes/NotesDecorationExposer.java b/astrid/plugin-src/com/todoroo/astrid/notes/NotesDecorationExposer.java index 17f9e576f..99630f026 100644 --- a/astrid/plugin-src/com/todoroo/astrid/notes/NotesDecorationExposer.java +++ b/astrid/plugin-src/com/todoroo/astrid/notes/NotesDecorationExposer.java @@ -9,6 +9,7 @@ import android.widget.RemoteViews; import com.timsu.astrid.R; import com.todoroo.andlib.service.ContextManager; +import com.todoroo.andlib.utility.Preferences; import com.todoroo.astrid.api.TaskDecoration; import com.todoroo.astrid.api.TaskDecorationExposer; import com.todoroo.astrid.data.Task; @@ -23,6 +24,9 @@ public class NotesDecorationExposer implements TaskDecorationExposer { @Override public TaskDecoration expose(Task task) { + 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 a187899ac..c339f3162 100644 --- a/astrid/plugin-src/com/todoroo/astrid/notes/NotesDetailExposer.java +++ b/astrid/plugin-src/com/todoroo/astrid/notes/NotesDetailExposer.java @@ -59,7 +59,7 @@ public class NotesDetailExposer extends BroadcastReceiver { String notes = task.getValue(Task.NOTES); if(!TextUtils.isEmpty(notes)) - notesBuilder.append(notesBuilder); + notesBuilder.append(notes); TodorooCursor cursor = PluginServices.getMetadataService().query( Query.select(Metadata.PROPERTIES).where(