Update dependencies

This commit is contained in:
Prathamesh More 2022-07-04 11:33:13 +05:30
parent 3493ad40ab
commit cff50fda3b
4 changed files with 6 additions and 6 deletions

View file

@ -94,7 +94,7 @@ dependencies {
implementation "androidx.appcompat:appcompat:$appcompat_version" implementation "androidx.appcompat:appcompat:$appcompat_version"
implementation 'androidx.annotation:annotation:1.4.0' implementation 'androidx.annotation:annotation:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.recyclerview:recyclerview:1.2.1' implementation 'androidx.recyclerview:recyclerview:1.3.0-beta01'
implementation "androidx.preference:preference-ktx:$preference_version" implementation "androidx.preference:preference-ktx:$preference_version"
implementation "androidx.core:core-ktx:$core_version" implementation "androidx.core:core-ktx:$core_version"
implementation 'androidx.palette:palette-ktx:1.0.0' implementation 'androidx.palette:palette-ktx:1.0.0'

View file

@ -487,7 +487,7 @@ class FoldersFragment : AbsMainActivityFragment(R.layout.fragment_folder),
} }
private fun setUpRecyclerView() { private fun setUpRecyclerView() {
binding.recyclerView.layoutManager = LinearLayoutManager(activity) binding.recyclerView.layoutManager = LinearLayoutManager(requireContext())
create( create(
binding.recyclerView binding.recyclerView
) )

View file

@ -55,7 +55,7 @@ class LibraryPreferenceDialog : DialogFragment() {
val categoryAdapter = CategoryInfoAdapter() val categoryAdapter = CategoryInfoAdapter()
binding.recyclerView.apply { binding.recyclerView.apply {
layoutManager = LinearLayoutManager(activity) layoutManager = LinearLayoutManager(requireContext())
adapter = categoryAdapter adapter = categoryAdapter
categoryAdapter.attachToRecyclerView(this) categoryAdapter.attachToRecyclerView(this)
} }

View file

@ -3,8 +3,8 @@
buildscript { buildscript {
ext { ext {
kotlin_version = '1.7.0' kotlin_version = '1.7.0'
lifecycle_version='2.5.0-rc02' lifecycle_version = '2.5.0'
navigation_version = '2.5.0-rc02' navigation_version = '2.5.0'
mdc_version = '1.7.0-alpha02' mdc_version = '1.7.0-alpha02'
preference_version = '1.2.0' preference_version = '1.2.0'
appcompat_version = '1.4.2' appcompat_version = '1.4.2'