From a7edd207adc724a54772aaf43384afb0677e64ac Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 19 Nov 2019 17:24:27 +0800 Subject: Version 1.6.0 --- .../ml/docilealligator/infinityforreddit/Fragment/PostFragment.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java index fab04c17..d8a38074 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java @@ -26,7 +26,6 @@ import android.widget.Toast; import androidx.annotation.DimenRes; import androidx.annotation.NonNull; import androidx.coordinatorlayout.widget.CoordinatorLayout; -import androidx.core.content.ContextCompat; import androidx.fragment.app.Fragment; import androidx.lifecycle.ViewModelProvider; import androidx.paging.PagedList; @@ -231,9 +230,7 @@ public class PostFragment extends Fragment implements FragmentCommunicator { } }; - mSwipeRefreshLayout.setOnRefreshListener(() -> { - mPostViewModel.refresh(); - }); + mSwipeRefreshLayout.setOnRefreshListener(() -> mPostViewModel.refresh()); TypedValue typedValue = new TypedValue(); activity.getTheme().resolveAttribute(R.attr.cardViewBackgroundColor, typedValue, true); -- cgit v1.2.3