1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-17 20:27:29 +00:00
This commit is contained in:
Ammar Githam 2020-11-15 21:55:07 +09:00
parent fececb5fd2
commit b3d41ccffa
3 changed files with 5 additions and 2 deletions

View File

@ -200,7 +200,7 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe
Utils.openEmailAddress(getContext(), emailId);
}
private void openPostDialog(final FeedModel feedModel,
private void openPostDialog(@NonNull final FeedModel feedModel,
final View profilePicView,
final View mainPostImage,
final int position) {
@ -209,6 +209,7 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe
opening = true;
new PostFetcher(feedModel.getShortCode(), newFeedModel -> {
opening = false;
if (newFeedModel == null) return;
openPostDialog(newFeedModel, profilePicView, mainPostImage, position);
}).execute();
return;

View File

@ -198,7 +198,7 @@ public class LocationFragment extends Fragment implements SwipeRefreshLayout.OnR
Utils.openEmailAddress(getContext(), emailId);
}
private void openPostDialog(final FeedModel feedModel,
private void openPostDialog(@NonNull final FeedModel feedModel,
final View profilePicView,
final View mainPostImage,
final int position) {
@ -207,6 +207,7 @@ public class LocationFragment extends Fragment implements SwipeRefreshLayout.OnR
opening = true;
new PostFetcher(feedModel.getShortCode(), newFeedModel -> {
opening = false;
if (newFeedModel == null) return;
openPostDialog(newFeedModel, profilePicView, mainPostImage, position);
}).execute();
return;

View File

@ -91,6 +91,7 @@ public class DiscoverFragment extends Fragment implements SwipeRefreshLayout.OnR
discoverService.topicalExplore(new DiscoverService.TopicalExploreRequest(), new ServiceCallback<DiscoverService.TopicalExploreResponse>() {
@Override
public void onSuccess(final DiscoverService.TopicalExploreResponse result) {
if (result == null) return;
topicClusterViewModel.getList().postValue(result.getClusters());
binding.swipeRefreshLayout.setRefreshing(false);
}