mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-16 11:47:29 +00:00
fix #507
This commit is contained in:
parent
147bc84696
commit
8f041b558a
@ -735,6 +735,15 @@ public class StoryViewerFragment extends Fragment {
|
||||
currentStory = storyModels.get(0);
|
||||
refreshStory();
|
||||
}
|
||||
binding.storiesList.setVisibility((storyModels.size() == 1 && currentFeedStoryIndex == -1) ? View.GONE : View.VISIBLE);
|
||||
if (currentFeedStoryIndex == -1) {
|
||||
binding.btnBackward.setVisibility(View.GONE);
|
||||
binding.btnForward.setVisibility(View.GONE);
|
||||
}
|
||||
storiesViewModel.getList().setValue(storyModels);
|
||||
currentStory = storyModels.get(0);
|
||||
refreshStory();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(final Throwable t) {
|
||||
|
@ -246,7 +246,6 @@ public class StoriesService extends BaseService {
|
||||
final boolean highlight,
|
||||
final ServiceCallback<List<StoryModel>> callback) {
|
||||
final String url = buildUrl(id, isLoc, isHashtag, highlight);
|
||||
Log.d("austin_debug", url);
|
||||
final Call<String> userStoryCall = repository.getUserStory(Constants.I_USER_AGENT, url);
|
||||
userStoryCall.enqueue(new Callback<String>() {
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user