Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11945] iOS: Accessibility - Ti.App.accessibilityEnabled property is not working properly.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2012-12-04T19:09:14.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2012 Sprint 25, 2012 Sprint 25 Core
ComponentsiOS
Labelsqe-ios100112
ReporterAnshu Mittal
AssigneeMax Stepanov
Created2012-12-04T11:54:01.000+0000
Updated2017-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();

Comments

  1. Max Stepanov 2012-12-04

    Turning off VoiceOver restarts the app. Turning on VoiceOver might keep app running.
  2. Lee Morris 2017-03-29

    Closing ticket as invalid.

JSON Source