1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-26 08:37:29 +00:00

Fix Posts not opening for anon users

This commit is contained in:
Ammar Githam 2020-11-15 15:01:02 +09:00
parent d48c72924a
commit c3de020f0e
2 changed files with 8 additions and 4 deletions

View File

@ -207,8 +207,10 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe
if (opening) return; if (opening) return;
if (TextUtils.isEmpty(feedModel.getProfileModel().getUsername())) { if (TextUtils.isEmpty(feedModel.getProfileModel().getUsername())) {
opening = true; opening = true;
new PostFetcher(feedModel.getShortCode(), newFeedModel -> openPostDialog(newFeedModel, profilePicView, mainPostImage, position)) new PostFetcher(feedModel.getShortCode(), newFeedModel -> {
.execute(); opening = false;
openPostDialog(newFeedModel, profilePicView, mainPostImage, position);
}).execute();
return; return;
} }
opening = true; opening = true;

View File

@ -205,8 +205,10 @@ public class LocationFragment extends Fragment implements SwipeRefreshLayout.OnR
if (opening) return; if (opening) return;
if (TextUtils.isEmpty(feedModel.getProfileModel().getUsername())) { if (TextUtils.isEmpty(feedModel.getProfileModel().getUsername())) {
opening = true; opening = true;
new PostFetcher(feedModel.getShortCode(), newFeedModel -> openPostDialog(newFeedModel, profilePicView, mainPostImage, position)) new PostFetcher(feedModel.getShortCode(), newFeedModel -> {
.execute(); opening = false;
openPostDialog(newFeedModel, profilePicView, mainPostImage, position);
}).execute();
return; return;
} }
opening = true; opening = true;