From 446e72e856d2bf482bfa958af2d178395535fece Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 17 Sep 2019 19:08:47 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/storage/Backup.kt | 6 ++++++ app/src/main/java/io/legado/app/utils/ContextExtensions.kt | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) 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 683cf34c1..56bae33eb 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 @@ -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") diff --git a/app/src/main/java/io/legado/app/utils/ContextExtensions.kt b/app/src/main/java/io/legado/app/utils/ContextExtensions.kt index 7de826fbb..c51be0b80 100644 --- a/app/src/main/java/io/legado/app/utils/ContextExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/ContextExtensions.kt @@ -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