Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11842] Android: Accessibility: SearchBar: Setting 'accessibilityHidden: true' disables searchbar to gain focus by clicking over it.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-11-29T00:11:16.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2012 Sprint 24, 2012 Sprint 24 API
ComponentsAndroid
Labelscore, qe-and100112, regression
ReporterShyam Bhadauria
AssigneeKarl Rowley
Created2012-11-21T12:58:25.000+0000
Updated2013-03-13T18:57:26.000+0000

Description

This is a regression. This issue was not occuring in 2.1.4. Though accessibility feature is not working in 2.1.4. The app contains 4 search bar. Upper 3 search bars could be focused by clicking over them. The lower most search bar do not gains focus when clicked. It could be focused when navigation is done with keyboard(by clicking 'next'). Steps to reproduce: 1. Use the app below
var win = Ti.UI.createWindow();
		var search1 = Titanium.UI.createSearchBar({
		    barColor:'#000', 
		    showCancel:true,
		    height:43,
		    top:10,
		});
		var search2 = Titanium.UI.createSearchBar({
		    barColor:'#000', 
		    showCancel:true,
		    height:43,
		    top:100,
		    accessibilityLabel: "Search bar2 label.",
			accessibilityValue: "Search bar2 value.",
			accessibilityHint: "Search bar2 hint"
		});
		var search3 = Titanium.UI.createSearchBar({
		    barColor:'#000', 
		    showCancel:true,
		    height:43,
		    top:200,
		    accessibilityHint: "Search bar3 hint",
		    accessibilityLabel: "Search bar3 label.",
			accessibilityValue: "Search bar3 value."
		});
		var search4 = Titanium.UI.createSearchBar({
		    barColor:'#000', 
		    showCancel:true,
		    height:43,
		    top:300,
		    accessibilityHidden: true,
		    accessibilityLabel: "Search bar4 label.",
			accessibilityValue: "Search bar4 value.",
			accessibilityHint: "Search bar4 hint"
		});
		
	win.add(search1);
	win.add(search2);
	win.add(search3);
	win.add(search4);
	win.open();
2. Run the app and click the fourth(lower most) search bar Expected result: 2. The clicked search bar should gain focus. Actual result: 2. The clicked search bar do not gains focus.

Comments

  1. Karl Rowley 2012-11-28

    So far I've been unable to reproduce this. Clicking on the 4th search bar causes it to gain focus. My environments: Nexus 7, Android 4.2 SDK 3_0_X Titanium Studio 2.1.0 Samsung Galaxy SIII (Sprint), Android 4.1.1 SDK 3_0_X Titanium Studio 2.1.0 If you can still reproduce this, can you show me? Thanks.
  2. Thomas Huelbert 2012-11-28

    Hey Karl, what version of sdk and studio did you use?
  3. Natalie Huynh 2012-11-28

    Must turn on accessibility to see the failure, I can still reproduce this issue with 3.0.0.v20121127163410 on Nexus 10 4.2
  4. Natalie Huynh 2012-11-29

    Not a bug. Only 4.1 android and above supports the hidden property and in this case the hidden property is working as expected. When that property is set to true, that object does not exist when accessibility is turned on, but when accessibility is turned off then the user can access the object.

JSON Source