mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
Fix Posts not opening for anon users
This commit is contained in:
parent
d48c72924a
commit
c3de020f0e
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user