[TIMOB-11945] iOS: Accessibility - Ti.App.accessibilityEnabled property is not working properly.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-12-04T19:09:14.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | 2012 Sprint 25, 2012 Sprint 25 Core |
Components | iOS |
Labels | qe-ios100112 |
Reporter | Anshu Mittal |
Assignee | Max Stepanov |
Created | 2012-12-04T11:54:01.000+0000 |
Updated | 2017-03-29T16:40:35.000+0000 |
Description
Ti.App.accessibilityEnabled property is not working properly.
Steps to reproduce:
1. Create an app using the code below.
2. Launch the app with the voiceover on.The message displayed is correct ie. accessibility is enabled.
2. Background the app and switch voiceover off. Launch the application. The message displayed is correct ie. accessibility is disabled.
3. Background the app and switch the voice over on and then launch the app.
Actual:
The message displayed is: "Accessibility is disabled"
Expected:
The message displayed should be: "Accessibility is enabled"
winEvents = Ti.UI.createWindow({
title: "Events",
layout: "vertical",
backgroundColor: "#fff"
});
eventLog = Ti.UI.createLabel({
top: 16, left: 32, right: 32,
//height: 48 * 5,
verticalAlign: Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP,
accessibilityHidden: true,
accessibilityLabel: "My special label.",
accessibilityValue: "No value.",
accessibilityHint: "No action",
});
//Ti.App.addEventListener(Ti.App.EVENT_ACCESSIBILITY_CHANGED, function(e) {
//eventLog.text += "\nAccessibility state changed: " + (e.enabled ? "it is now enabled." : "it is now disabled.");
//});
eventLog.text = "This label has the accessibilityHidden property set to true. ";
eventLog.text += "\n\n";
eventLog.text += (Ti.App.accessibilityEnabled ? "Accessibility is enabled." : "Accessibility is disabled.");
winEvents.add(eventLog);
winEvents.open();
Turning off VoiceOver restarts the app. Turning on VoiceOver might keep app running.
Closing ticket as invalid.