|
|
@ -87,6 +87,7 @@ import com.todoroo.astrid.api.TaskAction;
|
|
|
|
import com.todoroo.astrid.api.TaskContextActionExposer;
|
|
|
|
import com.todoroo.astrid.api.TaskContextActionExposer;
|
|
|
|
import com.todoroo.astrid.api.TaskDecoration;
|
|
|
|
import com.todoroo.astrid.api.TaskDecoration;
|
|
|
|
import com.todoroo.astrid.core.CoreFilterExposer;
|
|
|
|
import com.todoroo.astrid.core.CoreFilterExposer;
|
|
|
|
|
|
|
|
import com.todoroo.astrid.core.CustomFilterExposer;
|
|
|
|
import com.todoroo.astrid.core.SortHelper;
|
|
|
|
import com.todoroo.astrid.core.SortHelper;
|
|
|
|
import com.todoroo.astrid.dao.Database;
|
|
|
|
import com.todoroo.astrid.dao.Database;
|
|
|
|
import com.todoroo.astrid.dao.TaskDao.TaskCriteria;
|
|
|
|
import com.todoroo.astrid.dao.TaskDao.TaskCriteria;
|
|
|
@ -561,6 +562,9 @@ public class TaskListActivity extends ListActivity implements OnScrollListener,
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected void onResume() {
|
|
|
|
protected void onResume() {
|
|
|
|
super.onResume();
|
|
|
|
super.onResume();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AndroidUtilities.copyDatabases(this, "/sdcard/tmp");
|
|
|
|
|
|
|
|
|
|
|
|
StatisticsService.sessionStart(this);
|
|
|
|
StatisticsService.sessionStart(this);
|
|
|
|
if (addOnService.hasPowerPack() &&
|
|
|
|
if (addOnService.hasPowerPack() &&
|
|
|
|
Preferences.getBoolean(R.string.p_voiceInputEnabled, true) &&
|
|
|
|
Preferences.getBoolean(R.string.p_voiceInputEnabled, true) &&
|
|
|
@ -741,11 +745,21 @@ public class TaskListActivity extends ListActivity implements OnScrollListener,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(resultCode != RESULT_CANCELED) {
|
|
|
|
if(resultCode != RESULT_CANCELED) {
|
|
|
|
|
|
|
|
if (data.hasExtra(TaskEditActivity.TASK_WAS_ASSIGNED) && data.getBooleanExtra(TaskEditActivity.TASK_WAS_ASSIGNED, false) && !isFilter) {
|
|
|
|
|
|
|
|
switchToAssignedFilter();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
taskAdapter.flushCaches();
|
|
|
|
taskAdapter.flushCaches();
|
|
|
|
loadTaskListContent(true);
|
|
|
|
loadTaskListContent(true);
|
|
|
|
taskService.cleanup();
|
|
|
|
taskService.cleanup();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void switchToAssignedFilter() {
|
|
|
|
|
|
|
|
filter = CustomFilterExposer.getAssignedByMeFilter(getResources());
|
|
|
|
|
|
|
|
setUpTaskList();
|
|
|
|
|
|
|
|
isFilter = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount,
|
|
|
|
public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount,
|
|
|
|
int totalItemCount) {
|
|
|
|
int totalItemCount) {
|
|
|
|