diff --git a/app/src/main/java/io/legado/app/help/storage/Backup.kt b/app/src/main/java/io/legado/app/help/storage/Backup.kt index 0f55ac786..1cb43a8db 100644 --- a/app/src/main/java/io/legado/app/help/storage/Backup.kt +++ b/app/src/main/java/io/legado/app/help/storage/Backup.kt @@ -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) + + } } \ No newline at end of file diff --git a/app/src/main/res/menu/read_book.xml b/app/src/main/res/menu/read_book.xml index 8b95f1d3a..d8ea10f3d 100644 --- a/app/src/main/res/menu/read_book.xml +++ b/app/src/main/res/menu/read_book.xml @@ -1,7 +1,7 @@