Adding a localized message for a failed swipe

This commit is contained in:
ShirkNeko
2025-04-27 20:27:29 +08:00
parent 79e68f473f
commit e414b4de92
3 changed files with 3 additions and 1 deletions

View File

@@ -254,7 +254,7 @@ class HorizonKernelWorker(
}
if (!File("${context.filesDir.absolutePath}/done").exists()) {
throw IOException("Flash failed")
throw IOException(context.getString(R.string.flash_failed_message))
}
}

View File

@@ -291,4 +291,5 @@
<string name="horizon_setting_target_slot">设置指定槽位</string>
<string name="horizon_restoring_original_slot">恢复默认槽位</string>
<string name="current_slot">当前槽位:%1$s </string>
<string name="flash_failed_message">刷写失败</string>
</resources>

View File

@@ -295,4 +295,5 @@
<string name="horizon_setting_target_slot">Setting the specified slot</string>
<string name="horizon_restoring_original_slot">Restore Default Slot</string>
<string name="current_slot">Current Slot%1$s </string>
<string name="flash_failed_message">Flash failed</string>
</resources>