Merge branch 'bugfix/checkbox_accessibility_crash' into 'develop'
fix checkbox crash See merge request BPHV_MIPS/mvm_core_ui!160
This commit is contained in:
commit
ab3eb74401
@ -308,8 +308,9 @@ import MVMCore
|
|||||||
/// Adjust accessibility label based on state of Checkbox.
|
/// Adjust accessibility label based on state of Checkbox.
|
||||||
func updateAccessibilityLabel() {
|
func updateAccessibilityLabel() {
|
||||||
// Attention: This needs to be addressed with the accessibility team.
|
// Attention: This needs to be addressed with the accessibility team.
|
||||||
|
// NOTE: Currently emptying description part of MVMCoreUICheckBox accessibility label to avoid crashing!
|
||||||
if let state = MVMCoreUIUtility.hardcodedString(withKey: isSelected ? "checkbox_checked_state" : "checkbox_unchecked_state") {
|
if let state = MVMCoreUIUtility.hardcodedString(withKey: isSelected ? "checkbox_checked_state" : "checkbox_unchecked_state") {
|
||||||
accessibilityLabel = String(format: MVMCoreUIUtility.hardcodedString(withKey: "checkbox_desc_state") ?? "%@", state)
|
accessibilityLabel = String(format: MVMCoreUIUtility.hardcodedString(withKey: "checkbox_desc_state") ?? "%@%@", "", state)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user