Browse Source
remove excessive margin, refresh feed anew, closes #595
renovate/org.robolectric-robolectric-4.x
Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
3 changed files with
2 additions and
2 deletions
-
app/src/main/java/awais/instagrabber/customviews/PostsRecyclerView.java
-
app/src/main/java/awais/instagrabber/utils/DownloadUtils.java
-
app/src/main/res/layout/fragment_story_viewer.xml
|
@ -289,6 +289,7 @@ public class PostsRecyclerView extends RecyclerView { |
|
|
lazyLoader.resetState(); |
|
|
lazyLoader.resetState(); |
|
|
} |
|
|
} |
|
|
if (postFetcher != null) { |
|
|
if (postFetcher != null) { |
|
|
|
|
|
mediaViewModel.getList().postValue(Collections.emptyList()); |
|
|
postFetcher.reset(); |
|
|
postFetcher.reset(); |
|
|
postFetcher.fetch(); |
|
|
postFetcher.fetch(); |
|
|
} |
|
|
} |
|
|
|
@ -135,7 +135,7 @@ public final class DownloadUtils { |
|
|
final String postId, |
|
|
final String postId, |
|
|
final String sliderPostfix, |
|
|
final String sliderPostfix, |
|
|
final String displayUrl) { |
|
|
final String displayUrl) { |
|
|
final String fileName = postId + sliderPostfix + "." + getFileExtensionFromUrl(displayUrl); |
|
|
|
|
|
|
|
|
final String fileName = postId + sliderPostfix + getFileExtensionFromUrl(displayUrl); |
|
|
return new File(finalDir, fileName); |
|
|
return new File(finalDir, fileName); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
@ -9,7 +9,6 @@ |
|
|
android:id="@+id/story_container" |
|
|
android:id="@+id/story_container" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="0dp" |
|
|
android:layout_height="0dp" |
|
|
android:layout_marginTop="?attr/actionBarSize" |
|
|
|
|
|
android:layout_weight="1" |
|
|
android:layout_weight="1" |
|
|
app:layout_constraintBottom_toTopOf="@id/storiesList" |
|
|
app:layout_constraintBottom_toTopOf="@id/storiesList" |
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|