Stubs for handling the user status clicked button

pull/14/head
Sam Bosley 12 years ago
parent 2e110cdb93
commit 8af1725283

@ -99,6 +99,11 @@ public class PersonViewFragment extends TaskListFragment {
return parent;
}
public void handleStatusButtonClicked() {
// TODO: Handle this for real
System.err.println("Status for " + user.getDisplayName() + " is " + user.getValue(User.STATUS)); //$NON-NLS-1$ //$NON-NLS-2$
}
@Override
protected void addSyncRefreshMenuItem(Menu menu, int themeFlags) {
if(actFmPreferenceService.isLoggedIn()) {

@ -49,6 +49,7 @@ import com.todoroo.astrid.core.CustomFilterExposer;
import com.todoroo.astrid.data.TagData;
import com.todoroo.astrid.data.Task;
import com.todoroo.astrid.people.PeopleFilterMode;
import com.todoroo.astrid.people.PersonViewFragment;
import com.todoroo.astrid.service.StatisticsConstants;
import com.todoroo.astrid.service.StatisticsService;
import com.todoroo.astrid.service.ThemeService;
@ -140,6 +141,16 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
}
};
private final OnClickListener friendStatusClickListener = new OnClickListener() {
@Override
public void onClick(View v) {
TaskListFragment tlf = getTaskListFragment();
if (tlf == null || !(tlf instanceof PersonViewFragment))
return;
((PersonViewFragment) tlf).handleStatusButtonClicked();
}
};
/**
* @see android.app.Activity#onCreate(Bundle)
*/
@ -170,6 +181,7 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
createMainMenuPopover();
mainMenu.setOnClickListener(mainMenuClickListener);
commentsButton.setOnClickListener(commentsButtonClickListener);
personStatus.setOnClickListener(friendStatusClickListener);
Bundle extras = getIntent().getExtras();
if (extras != null)

Loading…
Cancel
Save