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 package io.legado.app.help.storage
import io.legado.app.App
import io.legado.app.utils.GSON
object Backup { object Backup {
fun backup() { fun backup() {
@ -9,4 +12,10 @@ object Backup {
fun autoBackup() { 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" <menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
tools:context=".view.activity.MainActivity"> tools:context=".ui.main.MainActivity">
<group android:id="@+id/menuOnLine"> <group android:id="@+id/menuOnLine">
<item <item

Loading…
Cancel
Save