|
|
@ -8,7 +8,6 @@ import androidx.lifecycle.Observer |
|
|
|
import io.legado.app.R |
|
|
|
import io.legado.app.R |
|
|
|
import io.legado.app.base.VMBaseActivity |
|
|
|
import io.legado.app.base.VMBaseActivity |
|
|
|
import io.legado.app.data.entities.Book |
|
|
|
import io.legado.app.data.entities.Book |
|
|
|
import io.legado.app.help.ImageLoader |
|
|
|
|
|
|
|
import io.legado.app.ui.changecover.ChangeCoverDialog |
|
|
|
import io.legado.app.ui.changecover.ChangeCoverDialog |
|
|
|
import io.legado.app.utils.getViewModel |
|
|
|
import io.legado.app.utils.getViewModel |
|
|
|
import kotlinx.android.synthetic.main.activity_book_info_edit.* |
|
|
|
import kotlinx.android.synthetic.main.activity_book_info_edit.* |
|
|
@ -59,10 +58,8 @@ class BookInfoEditActivity : |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun upCover() { |
|
|
|
private fun upCover() { |
|
|
|
viewModel.book?.getDisplayCover()?.let { |
|
|
|
viewModel.book.let { |
|
|
|
ImageLoader.load(this, it) |
|
|
|
iv_cover.load(it?.getDisplayCover(), it?.name) |
|
|
|
.centerCrop() |
|
|
|
|
|
|
|
.into(iv_cover) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|