Version 1.6.0

This commit is contained in:
Alex Ning 2019-11-19 17:24:27 +08:00
parent ca81ec49cf
commit a7edd207ad
2 changed files with 3 additions and 6 deletions

View File

@ -6,8 +6,8 @@ android {
applicationId "ml.docilealligator.infinityforreddit"
minSdkVersion 21
targetSdkVersion 29
versionCode 21
versionName "1.5.0"
versionCode 22
versionName "1.6.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {

View File

@ -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);