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