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:
PhotonQyv 2017-09-13 00:26:33 +01:00
parent 2d995c6e78
commit b419d829dd
1 changed files with 2 additions and 1 deletions

View File

@ -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){