Added a basic pinAction() method. That currently will attempt to pin a toot regardless of whether the toot is already pinned.
This commit is contained in:
parent
2d995c6e78
commit
b419d829dd
|
@ -880,7 +880,8 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf
|
|||
*/
|
||||
private void pinAction(Status status) {
|
||||
// Checks for if status is already pinned & owned (Though maybe we can do this prior to getting here?
|
||||
// new PostActionAsyncTask()
|
||||
new PostActionAsyncTask(context, API.StatusAction.PIN, status.getId(), StatusListAdapter.this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
statusListAdapter.notifyDataSetChanged();
|
||||
}
|
||||
|
||||
private void loadAttachments(final Status status, ViewHolder holder){
|
||||
|
|
Loading…
Reference in New Issue