|
|
|
|
@ -48,7 +48,6 @@ import com.todoroo.astrid.api.FilterListItem;
|
|
|
|
|
import com.todoroo.astrid.core.CustomFilterExposer;
|
|
|
|
|
import com.todoroo.astrid.data.TagData;
|
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
|
import com.todoroo.astrid.helper.AsyncImageView;
|
|
|
|
|
import com.todoroo.astrid.people.PeopleFilterMode;
|
|
|
|
|
import com.todoroo.astrid.service.StatisticsConstants;
|
|
|
|
|
import com.todoroo.astrid.service.StatisticsService;
|
|
|
|
|
@ -89,7 +88,7 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
|
|
|
|
|
private ImageView listsNavDisclosure;
|
|
|
|
|
private TextView lists;
|
|
|
|
|
private ImageView mainMenu;
|
|
|
|
|
private AsyncImageView personImage;
|
|
|
|
|
private TextView personStatus;
|
|
|
|
|
private Button commentsButton;
|
|
|
|
|
private int filterMode;
|
|
|
|
|
private FilterModeSpec filterModeSpec;
|
|
|
|
|
@ -164,8 +163,7 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
|
|
|
|
|
listsNavDisclosure = (ImageView) actionBar.getCustomView().findViewById(R.id.list_disclosure_arrow);
|
|
|
|
|
lists = (TextView) actionBar.getCustomView().findViewById(R.id.list_title);
|
|
|
|
|
mainMenu = (ImageView) actionBar.getCustomView().findViewById(R.id.main_menu);
|
|
|
|
|
personImage = (AsyncImageView) actionBar.getCustomView().findViewById(R.id.person_image);
|
|
|
|
|
personImage.setDefaultImageResource(R.drawable.icn_default_person_image);
|
|
|
|
|
personStatus = (TextView) actionBar.getCustomView().findViewById(R.id.person_image);
|
|
|
|
|
commentsButton = (Button) actionBar.getCustomView().findViewById(R.id.comments);
|
|
|
|
|
|
|
|
|
|
initializeFragments(actionBar);
|
|
|
|
|
@ -734,11 +732,10 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
|
|
|
|
|
setupPopoverWithFilterList((FilterListFragment) setupFragment(FilterListFragment.TAG_FILTERLIST_FRAGMENT, 0,
|
|
|
|
|
filterModeSpec.getFilterListClass(), true, true));
|
|
|
|
|
if (mode == FILTER_MODE_PEOPLE) {
|
|
|
|
|
personImage.setVisibility(View.VISIBLE);
|
|
|
|
|
personStatus.setVisibility(View.VISIBLE);
|
|
|
|
|
commentsButton.setVisibility(View.GONE);
|
|
|
|
|
((PeopleFilterMode) filterModeSpec).setImageView(personImage);
|
|
|
|
|
} else {
|
|
|
|
|
personImage.setVisibility(View.GONE);
|
|
|
|
|
personStatus.setVisibility(View.GONE);
|
|
|
|
|
commentsButton.setVisibility(View.VISIBLE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|