Fixed some issues from the merge that I did wrong

pull/14/head
Sam Bosley 13 years ago
parent ed01e28916
commit 3642dd3f73

@ -19,6 +19,7 @@ import com.todoroo.andlib.data.Property;
import com.todoroo.andlib.data.Property.IntegerProperty; import com.todoroo.andlib.data.Property.IntegerProperty;
import com.todoroo.andlib.data.TodorooCursor; import com.todoroo.andlib.data.TodorooCursor;
import com.todoroo.astrid.adapter.TaskAdapter; import com.todoroo.astrid.adapter.TaskAdapter;
import com.todoroo.astrid.adapter.TaskAdapter.OnCompletedTaskListener;
import com.todoroo.astrid.core.SortHelper; import com.todoroo.astrid.core.SortHelper;
import com.todoroo.astrid.data.Task; import com.todoroo.astrid.data.Task;
@ -61,12 +62,6 @@ public class DraggableTaskListActivity extends TaskListActivity {
getView().findViewById(R.id.sortContainer).setVisibility(View.GONE); getView().findViewById(R.id.sortContainer).setVisibility(View.GONE);
} }
@Override
protected void setUpUiComponents() {
super.setUpUiComponents();
findViewById(R.id.sortContainer).setVisibility(View.GONE);
}
// --- task adapter // --- task adapter
/** /**

@ -344,7 +344,7 @@ public final class TaskEditActivity extends Fragment {
//NOTE: we add the gcalControl to the list AFTER the deadline control, because //NOTE: we add the gcalControl to the list AFTER the deadline control, because
//otherwise the correct date may not be written to the calendar event. Order matters! //otherwise the correct date may not be written to the calendar event. Order matters!
DeadlineControlSet deadlineControl = new DeadlineControlSet( DeadlineControlSet deadlineControl = new DeadlineControlSet(
TaskEditActivity.this, R.layout.control_set_deadline, getActivity(), R.layout.control_set_deadline,
R.layout.control_set_deadline_display, repeatControls.getDisplayView(), gcalControl.getDisplayView()); R.layout.control_set_deadline_display, repeatControls.getDisplayView(), gcalControl.getDisplayView());
controls.add(deadlineControl); controls.add(deadlineControl);
controlSetMap.put(getString(R.string.TEA_ctrl_when_pref), deadlineControl); controlSetMap.put(getString(R.string.TEA_ctrl_when_pref), deadlineControl);
@ -384,7 +384,7 @@ public final class TaskEditActivity extends Fragment {
controlSetMap.put(getString(R.string.TEA_ctrl_reminders_pref), controlSetMap.put(getString(R.string.TEA_ctrl_reminders_pref),
reminderControl); reminderControl);
hideUntilControls = new HideUntilControlSet(TaskEditActivity.this, hideUntilControls = new HideUntilControlSet(getActivity(),
R.layout.control_set_hide, R.layout.control_set_hide_display, R.layout.control_set_hide, R.layout.control_set_hide_display,
R.string.hide_until_prompt); R.string.hide_until_prompt);
controls.add(hideUntilControls); controls.add(hideUntilControls);
@ -704,7 +704,6 @@ public final class TaskEditActivity extends Fragment {
Intent data = new Intent(); Intent data = new Intent();
data.putExtra(TOKEN_TASK_WAS_ASSIGNED, true); data.putExtra(TOKEN_TASK_WAS_ASSIGNED, true);
data.putExtra(TOKEN_ASSIGNED_TO, peopleControlSet.getAssignedToString()); data.putExtra(TOKEN_ASSIGNED_TO, peopleControlSet.getAssignedToString());
setResult(RESULT_OK, data);
getActivity().setResult(Activity.RESULT_OK, data); getActivity().setResult(Activity.RESULT_OK, data);
} }

@ -444,7 +444,7 @@ public class TaskListActivity extends ListFragment implements OnScrollListener,
public void onClick(View v) { public void onClick(View v) {
StatisticsService.reportEvent(StatisticsConstants.TLA_MENU_SORT); StatisticsService.reportEvent(StatisticsConstants.TLA_MENU_SORT);
AlertDialog dialog = SortSelectionActivity.createDialog(getActivity(), AlertDialog dialog = SortSelectionActivity.createDialog(getActivity(),
getActivity(), sortFlags, sortSort); TaskListActivity.this, sortFlags, sortSort);
dialog.show(); dialog.show();
} }
}); });

Loading…
Cancel
Save