Fix crash when unsaving post on a post detail page

Closes #90
This commit is contained in:
Bazsalanszky 2023-08-10 17:23:36 +02:00
parent c3de94012a
commit b3c2f6213d

View File

@ -1569,7 +1569,7 @@ public class PostDetailRecyclerViewAdapter extends RecyclerView.Adapter<Recycler
SavePost savePost = new SavePost();
if (mPost.isSaved()) {
mSaveButton.setImageResource(R.drawable.ic_bookmark_border_grey_24dp);
savePost.unsaveThing(mOauthRetrofit, mAccessToken, mPost.getId(),
savePost.unsaveThing(mRetrofit, mAccessToken, mPost.getId(),
new SaveThing.SaveThingListener() {
@Override
public void success() {