Fixed margin issues when viewing full task titles, fixed a crash in draggable task list

pull/14/head
Sam Bosley 13 years ago
parent ab95b37e2c
commit 4418372224

@ -32,9 +32,9 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:background="@android:drawable/list_selector_background" android:background="@android:drawable/list_selector_background"
android:paddingTop="1dip" android:layout_marginTop="6dip"
android:paddingLeft="5dip" android:layout_marginBottom="6dip"
android:paddingBottom="1dip"> android:paddingLeft="5dip">
<com.todoroo.astrid.ui.CheckableImageView <com.todoroo.astrid.ui.CheckableImageView

@ -19,7 +19,9 @@
android:id="@+id/rowBody" android:id="@+id/rowBody"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="57dip"> android:layout_marginTop="6dip"
android:layout_marginBottom="6dip"
android:minHeight="45dip">
<ImageView <ImageView
android:id="@+id/pictureBorder" android:id="@+id/pictureBorder"

@ -19,6 +19,7 @@ import com.todoroo.andlib.data.TodorooCursor;
import com.todoroo.astrid.adapter.TaskAdapter; import com.todoroo.astrid.adapter.TaskAdapter;
import com.todoroo.astrid.core.SortHelper; import com.todoroo.astrid.core.SortHelper;
import com.todoroo.astrid.data.Task; import com.todoroo.astrid.data.Task;
import com.todoroo.astrid.helper.SyncActionHelper;
/** /**
* Activity for working with draggable task lists, like Google Tasks lists * Activity for working with draggable task lists, like Google Tasks lists
@ -83,6 +84,7 @@ public class DraggableTaskListFragment extends TaskListFragment {
getListView().setOnScrollListener(this); getListView().setOnScrollListener(this);
registerForContextMenu(getListView()); registerForContextMenu(getListView());
syncActionHelper = new SyncActionHelper(getActivity());
loadTaskListContent(false); loadTaskListContent(false);
getTouchListView().setOnTouchListener(new OnTouchListener() { getTouchListView().setOnTouchListener(new OnTouchListener() {

@ -213,7 +213,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
displayMetrics = new DisplayMetrics(); displayMetrics = new DisplayMetrics();
fragment.getActivity().getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); fragment.getActivity().getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
this.minRowHeight = (int) (57 * displayMetrics.density); this.minRowHeight = (int) (4 * displayMetrics.density);
startDetailThread(); startDetailThread();
startTaskActionsThread(); startTaskActionsThread();

Loading…
Cancel
Save