|
|
@ -9,6 +9,7 @@ import android.widget.RemoteViews;
|
|
|
|
|
|
|
|
|
|
|
|
import com.timsu.astrid.R;
|
|
|
|
import com.timsu.astrid.R;
|
|
|
|
import com.todoroo.andlib.service.ContextManager;
|
|
|
|
import com.todoroo.andlib.service.ContextManager;
|
|
|
|
|
|
|
|
import com.todoroo.andlib.utility.Preferences;
|
|
|
|
import com.todoroo.astrid.api.TaskDecoration;
|
|
|
|
import com.todoroo.astrid.api.TaskDecoration;
|
|
|
|
import com.todoroo.astrid.api.TaskDecorationExposer;
|
|
|
|
import com.todoroo.astrid.api.TaskDecorationExposer;
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
@ -23,6 +24,9 @@ public class NotesDecorationExposer implements TaskDecorationExposer {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public TaskDecoration expose(Task task) {
|
|
|
|
public TaskDecoration expose(Task task) {
|
|
|
|
|
|
|
|
if(Preferences.getBoolean(R.string.p_showNotes, false))
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
|
|
if(task == null || !NotesPlugin.hasNotes(task))
|
|
|
|
if(task == null || !NotesPlugin.hasNotes(task))
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
|
|