|
|
@ -169,6 +169,8 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
|
|
|
|
|
|
|
|
|
|
|
|
private final AtomicReference<String> query;
|
|
|
|
private final AtomicReference<String> query;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final int minRowHeight;
|
|
|
|
|
|
|
|
|
|
|
|
// quick action bar
|
|
|
|
// quick action bar
|
|
|
|
private QuickActionWidget mBar;
|
|
|
|
private QuickActionWidget mBar;
|
|
|
|
private final QuickActionListener mBarListener = new QuickActionListener();
|
|
|
|
private final QuickActionListener mBarListener = new QuickActionListener();
|
|
|
@ -214,6 +216,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);
|
|
|
|
|
|
|
|
|
|
|
|
if (Preferences.getBoolean(R.string.p_showNotes, false)) {
|
|
|
|
if (Preferences.getBoolean(R.string.p_showNotes, false)) {
|
|
|
|
detailLoader = new DetailLoaderThread();
|
|
|
|
detailLoader = new DetailLoaderThread();
|
|
|
@ -342,6 +345,12 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
|
|
|
|
ViewHolder viewHolder = (ViewHolder)view.getTag();
|
|
|
|
ViewHolder viewHolder = (ViewHolder)view.getTag();
|
|
|
|
Task task = viewHolder.task;
|
|
|
|
Task task = viewHolder.task;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Preferences.getBoolean(R.string.p_allowCompressedTaskRows, false)) {
|
|
|
|
|
|
|
|
viewHolder.rowBody.setMinimumHeight(0);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
viewHolder.rowBody.setMinimumHeight(minRowHeight);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// name
|
|
|
|
// name
|
|
|
|
final TextView nameView = viewHolder.nameView; {
|
|
|
|
final TextView nameView = viewHolder.nameView; {
|
|
|
|
String nameValue = task.getValue(Task.TITLE);
|
|
|
|
String nameValue = task.getValue(Task.TITLE);
|
|
|
|