pull/71/head
kunfei 5 years ago
parent de10ebca2a
commit 91a5def2cc
  1. 1
      app/src/main/AndroidManifest.xml
  2. 19
      app/src/main/java/io/legado/app/ui/importbook/ImportBookActivity.kt
  3. 10
      app/src/main/java/io/legado/app/ui/importbook/ImportBookViewModel.kt
  4. 7
      app/src/main/res/layout/activity_import_book.xml

@ -98,6 +98,7 @@
<activity <activity
android:name=".ui.audio.AudioPlayActivity" android:name=".ui.audio.AudioPlayActivity"
android:launchMode="singleTask" /> android:launchMode="singleTask" />
<activity android:name=".ui.importbook.ImportBookActivity" />
<activity android:name=".ui.explore.ExploreShowActivity" /> <activity android:name=".ui.explore.ExploreShowActivity" />
<activity android:name=".ui.rss.source.manage.RssSourceActivity" /> <activity android:name=".ui.rss.source.manage.RssSourceActivity" />
<activity android:name=".ui.rss.source.debug.RssSourceDebugActivity" /> <activity android:name=".ui.rss.source.debug.RssSourceDebugActivity" />

@ -0,0 +1,19 @@
package io.legado.app.ui.importbook
import android.os.Bundle
import io.legado.app.R
import io.legado.app.base.VMBaseActivity
import io.legado.app.utils.getViewModel
class ImportBookActivity : VMBaseActivity<ImportBookViewModel>(R.layout.activity_import_book) {
override val viewModel: ImportBookViewModel
get() = getViewModel(ImportBookViewModel::class.java)
override fun onActivityCreated(savedInstanceState: Bundle?) {
}
}

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