diff --git a/app/src/main/java/io/legado/app/ui/download/DownloadActivity.kt b/app/src/main/java/io/legado/app/ui/download/DownloadActivity.kt index 72356b869..3f551da51 100644 --- a/app/src/main/java/io/legado/app/ui/download/DownloadActivity.kt +++ b/app/src/main/java/io/legado/app/ui/download/DownloadActivity.kt @@ -1,16 +1,24 @@ package io.legado.app.ui.download import android.os.Bundle +import androidx.recyclerview.widget.LinearLayoutManager import io.legado.app.R import io.legado.app.base.BaseActivity +import kotlinx.android.synthetic.main.activity_download.* class DownloadActivity : BaseActivity(R.layout.activity_download) { + lateinit var adapter: DownloadAdapter override fun onActivityCreated(savedInstanceState: Bundle?) { - + initRecyclerView() } + private fun initRecyclerView() { + recycler_view.layoutManager = LinearLayoutManager(this) + adapter = DownloadAdapter(this) + recycler_view.adapter = adapter + } } \ No newline at end of file