pull/63/head
kunfei 5 years ago
parent a1a6ce7850
commit 4d2d4e5f42
  1. 10
      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
}
}
Loading…
Cancel
Save