Adding a localized message for a failed swipe
This commit is contained in:
@@ -254,7 +254,7 @@ class HorizonKernelWorker(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!File("${context.filesDir.absolutePath}/done").exists()) {
|
if (!File("${context.filesDir.absolutePath}/done").exists()) {
|
||||||
throw IOException("Flash failed")
|
throw IOException(context.getString(R.string.flash_failed_message))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -291,4 +291,5 @@
|
|||||||
<string name="horizon_setting_target_slot">设置指定槽位</string>
|
<string name="horizon_setting_target_slot">设置指定槽位</string>
|
||||||
<string name="horizon_restoring_original_slot">恢复默认槽位</string>
|
<string name="horizon_restoring_original_slot">恢复默认槽位</string>
|
||||||
<string name="current_slot">当前槽位:%1$s </string>
|
<string name="current_slot">当前槽位:%1$s </string>
|
||||||
|
<string name="flash_failed_message">刷写失败</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -295,4 +295,5 @@
|
|||||||
<string name="horizon_setting_target_slot">Setting the specified slot</string>
|
<string name="horizon_setting_target_slot">Setting the specified slot</string>
|
||||||
<string name="horizon_restoring_original_slot">Restore Default Slot</string>
|
<string name="horizon_restoring_original_slot">Restore Default Slot</string>
|
||||||
<string name="current_slot">Current Slot:%1$s </string>
|
<string name="current_slot">Current Slot:%1$s </string>
|
||||||
|
<string name="flash_failed_message">Flash failed</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user