pull/53/head
kunfei 5 years ago
parent acc4449bc8
commit 3019e5510a
  1. 3
      app/src/main/java/io/legado/app/ui/changecover/ChangeCoverDialog.kt
  2. 2
      build.gradle

@ -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
}
}

@ -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'

Loading…
Cancel
Save