pull/34/head
kunfei 5 years ago
parent 888aef12e3
commit 80ab179477
  1. 9
      app/src/main/java/io/legado/app/help/storage/Backup.kt
  2. 2
      app/src/main/res/menu/read_book.xml

@ -1,5 +1,8 @@
package io.legado.app.help.storage
import io.legado.app.App
import io.legado.app.utils.GSON
object Backup {
fun backup() {
@ -9,4 +12,10 @@ object Backup {
fun autoBackup() {
}
private fun backupBookshelf() {
val books = App.db.bookDao().allBooks
val json = GSON.toJson(books)
}
}

@ -1,7 +1,7 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".view.activity.MainActivity">
tools:context=".ui.main.MainActivity">
<group android:id="@+id/menuOnLine">
<item

Loading…
Cancel
Save