Fix 'show note' preference not working

pull/14/head
Tim Su 14 years ago
parent baaa94362c
commit 9742e6e156

@ -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;

@ -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<Metadata> cursor = PluginServices.getMetadataService().query(
Query.select(Metadata.PROPERTIES).where(

Loading…
Cancel
Save