Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13887] iOS: Accessibility - Tabs label are not showing on relaunching the application

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2015-09-16T07:24:24.000+0000
Affected Version/sRelease 3.1.1
Fix Version/sn/a
ComponentsiOS
Labelsqe-3.1.1
ReporterDhirendra Jha
AssigneeAngel Petkov
Created2013-05-17T07:54:59.000+0000
Updated2017-03-21T21:44:07.000+0000

Description

This is not regression. This issue also exist on SDK 3.1.0 Steps: 1) Turned off accessibility services on the device. 2) Run the app on device. 3) Launch the app. Shows two tabs with labels "View Properties" and "Events". 4) Now close and kill the app on device. 5) Launch the app again. Actual Result: Tabs are showing without labels ("View Properties" and "Events"). See the attached screenshot and log file. Expected Result: Tabs label ("View Properties" and "Events") should show on relaunching the application
var tabGroup = Ti.UI.createTabGroup({orientationModes: [Ti.UI.PORTRAIT]}),
winViews = Ti.UI.createWindow({
	title: "View Properties",
	layout: "vertical",
	backgroundColor: "#fff"
}),
winEvents = Ti.UI.createWindow({
	title: "Events",
	layout: "vertical",
	backgroundColor: "#fff"
}),
tabViews = Ti.UI.createTab({
	window: winViews,
	title: winViews.title
}),
tabEvents = Ti.UI.createTab({
	window: winEvents,
	title: winEvents.title
}),
announceButton = Ti.UI.createButton({
	top: 16, width: 8 * 30, height: 48,
	title: "Make announcement"
}),
basicButton = Ti.UI.createButton({
	top: 16, width: 8 * 14, height: 48,
	title: "Basic"
}),
differentButton = Ti.UI.createButton({
	top: 16, width: 8 * 14, height: 48,
	title: "Different",
	accessibilityLabel: "This has different text for accessibility."
}),
sw = Ti.UI.createSwitch({
	value: false,
	accessibilityLabel: "My special switch.",
	accessibilityValue: "Off.",
	accessibilityHint: "Double tap to turn on.",
	top: 16

}),
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",
}),
versionParts = Ti.Platform.version.split("."),
isJellyBeanOrBetter = (parseInt(versionParts[0] > 4) ||
					   (parseInt(versionParts[0]) == 4 && parseInt(versionParts[1]) > 0));

sw.addEventListener("change", function() {
	if (sw.value) {
		sw.accessibilityValue = "On.";
		sw.accessibilityHint = "Double tap to turn off."
	} else {
		sw.accessibilityValue = "Off.";
		sw.accessibilityHint = "Double tap to turn on."
	}
});

announceButton.addEventListener("click", function() {
	Ti.App.fireSystemEvent(Ti.App.EVENT_ACCESSIBILITY_ANNOUNCEMENT,
						   "Please stand by for an urgent message from the Department of Home Land Security.");
});

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.");
if (parseInt(versionParts[0]) >= 4) {
	eventLog.text += "\n\nIf you go to Settings and disable/enable accessibility, the change will be reflected here.\n";
} else {
	eventLog.text += "\n\nOn Ice Cream Sandwich and higher devices, if you went to Settings and disabled/enabled ";
	eventLog.text += "accessibility, the change would be reflected here. But since you are running Android ";
	eventLog.text += Ti.Platform.version + ", you won't see that.";
}

winViews.add(basicButton);
winViews.add(differentButton);
winViews.add(sw);
winEvents.add(announceButton);
winEvents.add(eventLog);

tabGroup.addTab(tabViews);
tabGroup.addTab(tabEvents);
tabGroup.open();

Attachments

FileDateSize
ConsoleLog.rtf2013-05-17T07:54:59.000+0000161460
screenshot.PNG2013-05-17T07:54:59.000+000041062

Comments

  1. Pragya Rastogi 2013-09-06

    Issue persists for iOS 7 as well. Environment used: OSX: 10.8.4 Xcode:5.0 Appcelerator Studio: 3.1.3.201308302458 SDK:3.1.3.v20130904134612 ├── acs@1.0.6 ├── alloy@1.2.2 ├── npm@1.3.2 ├── titanium@3.1.2 └── titanium-code-processor@1.0.2 Device: iPhone4s ( iOS 7 Device)
  2. Olga Romero 2014-04-03

    In my case it occurs on iPad Air iOS 7. Appcelerator Studio, build: 3.2.3.201403271839 Titanium SDK, build:3.2.3.v20140401134117 Node.JS Version: v0.10.13 NPM Version: 1.3.2 ├── acs@1.0.14 ├── alloy@1.3.1 ├── node-appc@0.2.0 ├── npm@1.3.2 ├── titanium@3.2.3-alpha2 └── titanium-code-processor@1.1.1-alpha Xcode 5.1 Devices: IPhone5S iOS 7.1 iPad Air iOS 7.1
  3. Olga Romero 2014-09-18

    I cannot reproduce this issue with Mac osx 10.9.5 Mavericks Appcelerator Studio, build: 3.4.0.201409161950 Titanium SDK, build: 3.4.0.v20140917120000 acs@1.0.16 alloy 1.5.0-rc2 install@0.1.7 npm@1.4.23 sudo@1.0.3 titanium 3.4.0-rc4 titanium-code-processor@1.1.1 Xcode6.0.1 (6A317) Devices: iPhone 5S iOS8
  4. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced with iOS 10.2.

JSON Source