From b022f0fb38b8b95ae7bcc7fdb3a2355790dd23db Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 7 Dec 2012 12:16:40 -0800 Subject: [PATCH] Fixed a weird subtasks row resizing bug when using small fonts --- astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java index fdecffc53..488820e80 100644 --- a/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java +++ b/astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java @@ -269,7 +269,11 @@ public class TaskAdapter extends CursorAdapter implements Filterable { public int computeFullRowHeight() { DisplayMetrics metrics = resources.getDisplayMetrics(); - return minRowHeight + (int) (10 * metrics.density); + if (fontSize < 16) { + return (int) (39 * metrics.density); + } else { + return minRowHeight + (int) (10 * metrics.density); + } } private void startDetailThread() {