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 a0adfc295ccc..94780fa9fb0c 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 a6c7d902f244..6b954db9e737 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 967ce3606895..8ac8b52bf1c6 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 84ce6606410b..3a808d875a7b 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 a51324e413a8..d8564f2a0fe3 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 e14f9bfc882d..007da37cd234 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 3fc1aa648c09..8d4617f7251e 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 2d6eed219969..26ce23394d2a 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 b3a630ebe15d..ba26d0c6cf87 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