pull/34/head
kunfei 5 years ago
parent fe8c681064
commit 446e72e856
  1. 6
      app/src/main/java/io/legado/app/help/storage/Backup.kt
  2. 4
      app/src/main/java/io/legado/app/utils/ContextExtensions.kt

@ -42,6 +42,12 @@ object Backup {
}
}
private fun backupPreference(path: String) {
val file = FileHelp.getFile(path + File.separator + "config.xml")
}
private fun backupBookshelf(path: String) {
val json = GSON.toJson(App.db.bookDao().allBooks)
val file = FileHelp.getFile(path + File.separator + "bookshelf.json")

@ -5,12 +5,8 @@ import android.content.res.ColorStateList
import android.graphics.drawable.Drawable
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.content.edit
import androidx.fragment.app.Fragment
import com.jeremyliao.liveeventbus.LiveEventBus
import io.legado.app.R
import org.jetbrains.anko.connectivityManager
import org.jetbrains.anko.defaultSharedPreferences

Loading…
Cancel
Save