pull/32/head
GKF 6 years ago
parent a64c6e3831
commit fe39588623
  1. 1
      app/src/main/AndroidManifest.xml
  2. 2
      app/src/main/java/io/legado/app/model/analyzeRule/analyzeJsoup.kt
  3. 8
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt
  4. 18
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoEditActivity.kt
  5. 2
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoViewModel.kt
  6. 7
      app/src/main/res/layout/activity_book_info_edit.xml

@ -46,6 +46,7 @@
<activity android:name=".ui.qrcode.QrCodeActivity" />
<activity android:name=".ui.about.DonateActivity" />
<activity android:name=".ui.bookinfo.BookInfoActivity" />
<activity android:name=".ui.bookinfo.BookInfoEditActivity" />
</application>
</manifest>

@ -0,0 +1,2 @@
package io.legado.app.model.analyzeRule

@ -5,13 +5,13 @@ import io.legado.app.R
import io.legado.app.base.BaseActivity
import io.legado.app.utils.getViewModel
class BookInfoActivity : BaseActivity<BookInfoModel>() {
override val viewModel: BookInfoModel
get() = getViewModel(BookInfoModel::class.java)
class BookInfoActivity : BaseActivity<BookInfoViewModel>() {
override val viewModel: BookInfoViewModel
get() = getViewModel(BookInfoViewModel::class.java)
override val layoutID: Int
get() = R.layout.activity_book_info
override fun onViewModelCreated(viewModel: BookInfoModel, savedInstanceState: Bundle?) {
override fun onViewModelCreated(viewModel: BookInfoViewModel, savedInstanceState: Bundle?) {
}

@ -0,0 +1,18 @@
package io.legado.app.ui.bookinfo
import android.os.Bundle
import io.legado.app.R
import io.legado.app.base.BaseActivity
import io.legado.app.utils.getViewModel
class BookInfoEditActivity : BaseActivity<BookInfoViewModel>() {
override val viewModel: BookInfoViewModel
get() = getViewModel(BookInfoViewModel::class.java)
override val layoutID: Int
get() = R.layout.activity_book_info_edit
override fun onViewModelCreated(viewModel: BookInfoViewModel, savedInstanceState: Bundle?) {
}
}

@ -3,6 +3,6 @@ package io.legado.app.ui.bookinfo
import android.app.Application
import io.legado.app.base.BaseViewModel
class BookInfoModel(application: Application) : BaseViewModel(application) {
class BookInfoViewModel(application: Application) : BaseViewModel(application) {
}

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>
Loading…
Cancel
Save