diff --git a/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java b/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java index df9f8744..72d6ed0c 100644 --- a/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java @@ -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) { diff --git a/app/src/main/java/awais/instagrabber/webservices/StoriesService.java b/app/src/main/java/awais/instagrabber/webservices/StoriesService.java index 7ea3b5c9..cb022372 100644 --- a/app/src/main/java/awais/instagrabber/webservices/StoriesService.java +++ b/app/src/main/java/awais/instagrabber/webservices/StoriesService.java @@ -246,7 +246,6 @@ public class StoriesService extends BaseService { final boolean highlight, final ServiceCallback> callback) { final String url = buildUrl(id, isLoc, isHashtag, highlight); - Log.d("austin_debug", url); final Call userStoryCall = repository.getUserStory(Constants.I_USER_AGENT, url); userStoryCall.enqueue(new Callback() { @Override