mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-16 19:57:31 +00:00
Merge branch 'master' into pr/503
This commit is contained in:
commit
0c72e66768
@ -739,8 +739,10 @@ public class StoryViewerFragment extends Fragment {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
binding.storiesList.setVisibility((storyModels.size() == 1 && currentFeedStoryIndex == -1) ? View.GONE : View.VISIBLE);
|
binding.storiesList.setVisibility((storyModels.size() == 1 && currentFeedStoryIndex == -1) ? View.GONE : View.VISIBLE);
|
||||||
binding.btnBackward.setVisibility(currentFeedStoryIndex == -1 ? View.GONE : View.VISIBLE);
|
if (currentFeedStoryIndex == -1) {
|
||||||
binding.btnForward.setVisibility(currentFeedStoryIndex == -1 ? View.GONE : View.VISIBLE);
|
binding.btnBackward.setVisibility(View.GONE);
|
||||||
|
binding.btnForward.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
storiesViewModel.getList().setValue(storyModels);
|
storiesViewModel.getList().setValue(storyModels);
|
||||||
currentStory = storyModels.get(0);
|
currentStory = storyModels.get(0);
|
||||||
refreshStory();
|
refreshStory();
|
||||||
|
@ -246,7 +246,6 @@ public class StoriesService extends BaseService {
|
|||||||
final boolean highlight,
|
final boolean highlight,
|
||||||
final ServiceCallback<List<StoryModel>> callback) {
|
final ServiceCallback<List<StoryModel>> callback) {
|
||||||
final String url = buildUrl(id, isLoc, isHashtag, highlight);
|
final String url = buildUrl(id, isLoc, isHashtag, highlight);
|
||||||
Log.d("austin_debug", url);
|
|
||||||
final Call<String> userStoryCall = repository.getUserStory(Constants.I_USER_AGENT, url);
|
final Call<String> userStoryCall = repository.getUserStory(Constants.I_USER_AGENT, url);
|
||||||
userStoryCall.enqueue(new Callback<String>() {
|
userStoryCall.enqueue(new Callback<String>() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user