|
|
|
|
@ -27,6 +27,8 @@ import com.todoroo.astrid.dao.TaskDao.TaskCriteria;
|
|
|
|
|
import com.todoroo.astrid.data.TagData;
|
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
|
import com.todoroo.astrid.helper.AsyncImageView;
|
|
|
|
|
import com.todoroo.astrid.service.StatisticsConstants;
|
|
|
|
|
import com.todoroo.astrid.service.StatisticsService;
|
|
|
|
|
import com.todoroo.astrid.service.TagDataService;
|
|
|
|
|
import com.todoroo.astrid.tags.TagFilterExposer;
|
|
|
|
|
import com.todoroo.astrid.tags.TagService.Tag;
|
|
|
|
|
@ -114,11 +116,13 @@ public class FeaturedTaskListFragment extends TagViewFragment {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void cloneList() {
|
|
|
|
|
// Clone list
|
|
|
|
|
// Clone list
|
|
|
|
|
if (taskAdapter == null || taskAdapter.getCount() == 0) {
|
|
|
|
|
Toast.makeText(getActivity(), R.string.actfm_feat_list_clone_empty, Toast.LENGTH_LONG).show();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StatisticsService.reportEvent(StatisticsConstants.FEATURED_LIST_CLONED);
|
|
|
|
|
final String localName = tagData.getValue(TagData.NAME) + " " + getString(R.string.actfm_feat_list_suffix); //$NON-NLS-1$
|
|
|
|
|
long remoteId = 0;
|
|
|
|
|
TodorooCursor<TagData> existing = tagDataService.query(Query.select(TagData.REMOTE_ID)
|
|
|
|
|
|