Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11458] iOS: Accessibility: Text for tableview, behind an open window, is spoken when touched on section header with view on tableview on window

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-01-21T22:02:55.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.2, Release 3.1.0, 2013 Sprint 01 Core, 2013 Sprint 01
ComponentsiOS
Labelscore, qe-ios100112, qe-nfc, qe-testadded
ReporterSatyam Sekhri
AssigneeMax Stepanov
Created2012-10-13T08:52:26.000+0000
Updated2013-10-03T10:13:41.000+0000

Description

Title of row in tableview, behind an open window, is spoken when touched on section header with view on tableview on window. Steps To Reproduce: 1. Open the application below with voice over ON 2. Click on first Row "Outside Row 1". A window opens up with a tableview 3. Touch Header 3 or Footer 3 Actual: The title of the row in the outside tableview (one behind the open window) is spoken that lies behind the touched area. This happens only for section header or footer with a view Expected: The text related to touched section header/footer should be spoken
var win = Ti.UI.createWindow({
    title : 'Welcome',
    backgroundColor: "#fff"
});
	var row1=Ti.UI.createTableViewRow({
            title:'Outside Row 1',
        });
        var data = [row1];
        for (var c=1;c<20;c++)
    {
        var row = Ti.UI.createTableViewRow({title:'Outside Row '+(c+1)});
        data.push(row);
    }
         
    var table=Ti.UI.createTableView({data:data});
    row1.addEventListener('click',function(e){
		var win2=Ti.UI.createWindow({backgroundColor: "#fff"});
	
		var section2 = Ti.UI.createTableViewSection({
			headerTitle:'Header 2',
			footerTitle:'Footer2',
			accessibilityLabel:'Table Section 2',
			accessibilityValue:'Section 2',
			accessibilityHint:'Hint for Section 2 '
		});
		var header = Ti.UI.createView({
			backgroundColor:'red',
			height:'25'
		});
		var footer = Ti.UI.createView({
			backgroundColor:'Blue',
			height:'20'
		});
		var headerLabel = Ti.UI.createLabel({
			text:'Header3',
			color:'Black',
			textAlign:'left',
		});
		var footerLabel = Ti.UI.createLabel({
			text:'Footer3',
			color:'Black',
			textAlign:'left',
		});
		header.add(headerLabel);
		footer.add(footerLabel);
		var section3 = Ti.UI.createTableViewSection({
			headerView:header,
			footerView:footer,
			accessibilityValue:'Section 3',
			accessibilityLabel:'Table Section 3',
			accessibilityHint:'Hint for Section 3'
		});
	
		var row2=Ti.UI.createTableViewRow({
			title:'Row 2',
			hasCheck:true,
			accessibilityLabel: 'Second Option',
			accessibilityValue: 'Checked',
			accessibilityHint: 'The cheked sign on right'
		});
		var row3=Ti.UI.createTableViewRow({
			title:'Row 3',
			hasDetail:true,
			accessibilityValue: 'Row 3 Value',
			accessibilityLabel: 'Third Option',
			accessibilityHint: 'The Details icon on right',
		});
		
		section2.add(row2);
		section3.add(row3);
		var data1 = [section2,section3];
		var table1=Ti.UI.createTableView({data:data1});
		
		win2.add(table1);
		win2.open();
	});
		
	win.add(table);
win.open();

Comments

  1. Max Stepanov 2012-10-14

    Looks rather iOS platform bug. Needs further investigation. Sending Ti.App.fireSystemEvent(Ti.App.iOS.EVENT_ACCESSIBILITY_SCREEN_CHANGED) helps only with active selection.
  2. Max Stepanov 2012-12-14

    PR https://github.com/appcelerator/titanium_mobile/pull/3603 Fixed for iOS 5.0+ only.
  3. Satyam Sekhri 2013-01-21

    Verified on: Studio: 3.0.1.201212181159 SDK: 3.1.0.v20130114171802 iOS Device: iPhone4S (v5.1), iPhone5 (v6.0) XCode: 4.5.2
  4. Vishal Duggal 2013-01-21

    Backport Task TIMOB-12318 Backport PR https://github.com/appcelerator/titanium_mobile/pull/3748

JSON Source