pull/32/head
gedoor 6 years ago
parent 8fb9dbde38
commit a64c6e3831
  1. 2
      app/src/main/AndroidManifest.xml
  2. 19
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt
  3. 8
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoModel.kt
  4. 7
      app/src/main/res/layout/activity_book_info.xml

@ -38,7 +38,6 @@
<activity android:name=".ui.replacerule.ReplaceRuleActivity"/>
<activity android:name=".ui.search.SearchActivity"/>
<activity android:name=".ui.about.AboutActivity"/>
<activity android:name=".help.permission.PermissionActivity"
android:theme="@style/Activity.Permission"/>
<activity android:name=".ui.config.ConfigActivity"/>
@ -46,6 +45,7 @@
<activity android:name=".ui.bookshelf.BookshelfActivity" />
<activity android:name=".ui.qrcode.QrCodeActivity" />
<activity android:name=".ui.about.DonateActivity" />
<activity android:name=".ui.bookinfo.BookInfoActivity" />
</application>
</manifest>

@ -0,0 +1,19 @@
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 BookInfoActivity : BaseActivity<BookInfoModel>() {
override val viewModel: BookInfoModel
get() = getViewModel(BookInfoModel::class.java)
override val layoutID: Int
get() = R.layout.activity_book_info
override fun onViewModelCreated(viewModel: BookInfoModel, savedInstanceState: Bundle?) {
}
}

@ -0,0 +1,8 @@
package io.legado.app.ui.bookinfo
import android.app.Application
import io.legado.app.base.BaseViewModel
class BookInfoModel(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