diff --git a/app/src/main/java/io/legado/app/ui/config/ConfigViewModel.kt b/app/src/main/java/io/legado/app/ui/config/ConfigViewModel.kt
index a0adfc295..94780fa9f 100644
--- a/app/src/main/java/io/legado/app/ui/config/ConfigViewModel.kt
+++ b/app/src/main/java/io/legado/app/ui/config/ConfigViewModel.kt
@@ -10,6 +10,7 @@ import io.legado.app.help.book.BookHelp
import io.legado.app.utils.FileUtils
import io.legado.app.utils.restart
import io.legado.app.utils.toastOnUi
+import kotlinx.coroutines.delay
import splitties.init.appCtx
class ConfigViewModel(application: Application) : BaseViewModel(application) {
@@ -32,6 +33,8 @@ class ConfigViewModel(application: Application) : BaseViewModel(application) {
fun clearWebViewData() {
execute {
FileUtils.delete(context.getDir("webview", Context.MODE_PRIVATE))
+ context.toastOnUi(R.string.clear_webview_data_success)
+ delay(3000)
appCtx.restart()
}
}
diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml
index a6c7d902f..6b954db9e 100644
--- a/app/src/main/res/values-es-rES/strings.xml
+++ b/app/src/main/res/values-es-rES/strings.xml
@@ -1138,4 +1138,5 @@
删除h标签
调整本章页数
调整章节位置
+ 清除成功,3秒后自动重启应用
diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml
index 967ce3606..8ac8b52bf 100644
--- a/app/src/main/res/values-ja-rJP/strings.xml
+++ b/app/src/main/res/values-ja-rJP/strings.xml
@@ -1141,4 +1141,5 @@
删除h标签
调整本章页数
调整章节位置
+ 清除成功,3秒后自动重启应用
diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml
index 84ce66064..3a808d875 100644
--- a/app/src/main/res/values-pt-rBR/strings.xml
+++ b/app/src/main/res/values-pt-rBR/strings.xml
@@ -1141,4 +1141,5 @@
删除h标签
调整本章页数
调整章节位置
+ 清除成功,3秒后自动重启应用
diff --git a/app/src/main/res/values-vi/strings.xml b/app/src/main/res/values-vi/strings.xml
index a51324e41..d8564f2a0 100644
--- a/app/src/main/res/values-vi/strings.xml
+++ b/app/src/main/res/values-vi/strings.xml
@@ -1137,4 +1137,5 @@ Còn
删除h标签
调整本章页数
调整章节位置
+ 清除成功,3秒后自动重启应用
diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml
index e14f9bfc8..007da37cd 100644
--- a/app/src/main/res/values-zh-rHK/strings.xml
+++ b/app/src/main/res/values-zh-rHK/strings.xml
@@ -1138,4 +1138,5 @@
删除h标签
调整本章页数
调整章节位置
+ 清除成功,3秒后自动重启应用
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
index 3fc1aa648..8d4617f72 100644
--- a/app/src/main/res/values-zh-rTW/strings.xml
+++ b/app/src/main/res/values-zh-rTW/strings.xml
@@ -1140,4 +1140,5 @@
删除h标签
调整本章页数
调整章节位置
+ 清除成功,3秒后自动重启应用
diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml
index 2d6eed219..26ce23394 100644
--- a/app/src/main/res/values-zh/strings.xml
+++ b/app/src/main/res/values-zh/strings.xml
@@ -1140,4 +1140,5 @@
删除h标签
调整本章页数
调整章节位置
+ 清除成功,3秒后自动重启应用
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index b3a630ebe..ba26d0c6c 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1141,4 +1141,5 @@
Delete h tag
Adjust of chapter page
Adjust of chapter index
+ Cleared successfully, automatically restarts the application after 3 seconds