From f3d08b19f837ce14db1201bbdd2d33a5d2514a5b Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 5 Apr 2013 11:14:47 -0700 Subject: [PATCH] Checking off a task in the edit page should make the title strikethrough --- astrid/src/com/todoroo/astrid/ui/EditTitleControlSet.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/astrid/src/com/todoroo/astrid/ui/EditTitleControlSet.java b/astrid/src/com/todoroo/astrid/ui/EditTitleControlSet.java index 618b4b90e..46d134c41 100644 --- a/astrid/src/com/todoroo/astrid/ui/EditTitleControlSet.java +++ b/astrid/src/com/todoroo/astrid/ui/EditTitleControlSet.java @@ -6,6 +6,7 @@ package com.todoroo.astrid.ui; import android.app.Activity; +import android.graphics.Paint; import android.text.TextUtils; import android.view.View; import android.view.View.OnClickListener; @@ -115,6 +116,11 @@ public class EditTitleControlSet extends TaskEditControlSet implements Importanc completeBox.setImageResource(resourceArray[valueToUse]); } } + + if (checked) + editText.setPaintFlags(editText.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); + else + editText.setPaintFlags(editText.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG); } }