From 058501053d47a4983c80e9c0b7cb02499fd95287 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 20 Jan 2021 19:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/DefaultData.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/DefaultData.kt b/app/src/main/java/io/legado/app/help/DefaultData.kt index 26d94814a..ba06316b9 100644 --- a/app/src/main/java/io/legado/app/help/DefaultData.kt +++ b/app/src/main/java/io/legado/app/help/DefaultData.kt @@ -56,16 +56,12 @@ object DefaultData { fun importDefaultHttpTTS() { App.db.httpTTSDao.deleteDefault() - httpTTS.let { - App.db.httpTTSDao.insert(*it.toTypedArray()) - } + App.db.httpTTSDao.insert(*httpTTS.toTypedArray()) } fun importDefaultTocRules() { App.db.txtTocRule.deleteDefault() - txtTocRules.let { - App.db.txtTocRule.insert(*it.toTypedArray()) - } + App.db.txtTocRule.insert(*txtTocRules.toTypedArray()) } fun importDefaultRssSources() {