From 8b81b115f0bc35897981152c428935b56052f685 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Fri, 15 Jan 2021 11:13:36 -0500 Subject: [PATCH] remove excessive margin, refresh feed anew, closes #595 --- .../java/awais/instagrabber/customviews/PostsRecyclerView.java | 1 + app/src/main/java/awais/instagrabber/utils/DownloadUtils.java | 2 +- app/src/main/res/layout/fragment_story_viewer.xml | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/customviews/PostsRecyclerView.java b/app/src/main/java/awais/instagrabber/customviews/PostsRecyclerView.java index 48306e27..f7aac54e 100644 --- a/app/src/main/java/awais/instagrabber/customviews/PostsRecyclerView.java +++ b/app/src/main/java/awais/instagrabber/customviews/PostsRecyclerView.java @@ -289,6 +289,7 @@ public class PostsRecyclerView extends RecyclerView { lazyLoader.resetState(); } if (postFetcher != null) { + mediaViewModel.getList().postValue(Collections.emptyList()); postFetcher.reset(); postFetcher.fetch(); } diff --git a/app/src/main/java/awais/instagrabber/utils/DownloadUtils.java b/app/src/main/java/awais/instagrabber/utils/DownloadUtils.java index d063a569..89f3bd42 100644 --- a/app/src/main/java/awais/instagrabber/utils/DownloadUtils.java +++ b/app/src/main/java/awais/instagrabber/utils/DownloadUtils.java @@ -135,7 +135,7 @@ public final class DownloadUtils { final String postId, final String sliderPostfix, final String displayUrl) { - final String fileName = postId + sliderPostfix + "." + getFileExtensionFromUrl(displayUrl); + final String fileName = postId + sliderPostfix + getFileExtensionFromUrl(displayUrl); return new File(finalDir, fileName); } diff --git a/app/src/main/res/layout/fragment_story_viewer.xml b/app/src/main/res/layout/fragment_story_viewer.xml index d9893f08..dfc79cd7 100644 --- a/app/src/main/res/layout/fragment_story_viewer.xml +++ b/app/src/main/res/layout/fragment_story_viewer.xml @@ -9,7 +9,6 @@ android:id="@+id/story_container" android:layout_width="match_parent" android:layout_height="0dp" - android:layout_marginTop="?attr/actionBarSize" android:layout_weight="1" app:layout_constraintBottom_toTopOf="@id/storiesList" app:layout_constraintEnd_toEndOf="parent"