From fbdd8652db28eca0cb6da0311db15532782b8780 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 22 Sep 2011 13:51:58 -0700 Subject: [PATCH] Fixed cursor moving on rotate in task title and notes --- astrid/res/layout/task_edit_activity.xml | 6 ++++-- astrid/src/com/todoroo/astrid/ui/EditTextControlSet.java | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/astrid/res/layout/task_edit_activity.xml b/astrid/res/layout/task_edit_activity.xml index f85a5f593..2a447efe5 100644 --- a/astrid/res/layout/task_edit_activity.xml +++ b/astrid/res/layout/task_edit_activity.xml @@ -67,7 +67,8 @@ android:hint="@string/TEA_title_hint" android:autoText="true" android:text="" - android:capitalize="sentences" /> + android:capitalize="sentences" + android:freezesText="true"/> + android:singleLine="false" + android:freezesText="true" /> diff --git a/astrid/src/com/todoroo/astrid/ui/EditTextControlSet.java b/astrid/src/com/todoroo/astrid/ui/EditTextControlSet.java index 321cd363c..06aca2d81 100644 --- a/astrid/src/com/todoroo/astrid/ui/EditTextControlSet.java +++ b/astrid/src/com/todoroo/astrid/ui/EditTextControlSet.java @@ -23,7 +23,7 @@ public class EditTextControlSet implements TaskEditControlSet { @Override public void readFromTask(Task task) { - editText.setText(task.getValue(property)); + editText.setTextKeepState(task.getValue(property)); } @Override