diff --git a/app/src/main/java/io/legado/app/ui/changecover/ChangeCoverDialog.kt b/app/src/main/java/io/legado/app/ui/changecover/ChangeCoverDialog.kt index 03db768f4..a0488160f 100644 --- a/app/src/main/java/io/legado/app/ui/changecover/ChangeCoverDialog.kt +++ b/app/src/main/java/io/legado/app/ui/changecover/ChangeCoverDialog.kt @@ -15,6 +15,7 @@ import kotlinx.android.synthetic.main.dialog_change_source.* class ChangeCoverDialog : DialogFragment() { private lateinit var viewModel: ChangeCoverViewModel + private lateinit var adapter: CoverAdapter override fun onStart() { super.onStart() @@ -36,6 +37,8 @@ class ChangeCoverDialog : DialogFragment() { super.onViewCreated(view, savedInstanceState) tool_bar.setTitle(R.string.change_cover_source) recycler_view.layoutManager = GridLayoutManager(requireContext(), 3) + adapter = CoverAdapter(requireContext()) + recycler_view.adapter = adapter } } \ No newline at end of file diff --git a/build.gradle b/build.gradle index cb1547a01..be4632b0d 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { maven { url 'https://plugins.gradle.org/m2/' } } dependencies { - classpath 'com.android.tools.build:gradle:3.5.2' + classpath 'com.android.tools.build:gradle:3.5.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'de.timfreiheit.resourceplaceholders:placeholders:0.3' classpath 'com.google.gms:google-services:4.3.3'