aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-11-19 09:24:27 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-11-19 09:24:27 +0000
commita7edd207adc724a54772aaf43384afb0677e64ac (patch)
treea64575171350397c19e1af35c21f2c985537957c /app/src
parentca81ec49cf8fba4191673903bd8d7c6ef39394e6 (diff)
downloadinfinity-for-reddit-a7edd207adc724a54772aaf43384afb0677e64ac.tar
infinity-for-reddit-a7edd207adc724a54772aaf43384afb0677e64ac.tar.gz
infinity-for-reddit-a7edd207adc724a54772aaf43384afb0677e64ac.tar.bz2
infinity-for-reddit-a7edd207adc724a54772aaf43384afb0677e64ac.tar.lz
infinity-for-reddit-a7edd207adc724a54772aaf43384afb0677e64ac.tar.xz
infinity-for-reddit-a7edd207adc724a54772aaf43384afb0677e64ac.tar.zst
infinity-for-reddit-a7edd207adc724a54772aaf43384afb0677e64ac.zip
Version 1.6.0
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Fragment/PostFragment.java5
1 files changed, 1 insertions, 4 deletions
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);