From 3019e5510acafbfa48b20b4231e0f0bc3211a79f Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 6 Dec 2019 09:59:59 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/changecover/ChangeCoverDialog.kt | 3 +++ build.gradle | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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'