Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11485] Android: Accessibility: Accessibility does not work on first touch for picker with UseSpinner property true on Android Jelly bean

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-07-18T21:20:58.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelscore, qe-and100112, qe-nfc
ReporterSatyam Sekhri
AssigneeEric Merriman
Created2012-10-15T10:43:55.000+0000
Updated2017-07-18T21:20:58.000+0000

Description

Accessibility does not work on first touch for picker with UseSpinner property true. Whereas it works on Jelly bean device when UseSpinner is false. Steps To Reproduce: 1. Open the application with code below 2. Touch first picker (with UseSpinner as true) 3. Again move the finger from outside the picker back to the picker Actual: After Step2: The picker only gets selected After Step3: The accessibility text are read aloud Expected: The accessibility text should be read aloud on first touch as it happens on the second picker on the page(which does not have UseSpinner)
win = Ti.UI.createWindow({
    title: "Events",
    layout: "vertical",
    backgroundColor: "#fff"
});
var data = [];
		data[0]=Ti.UI.createPickerRow({title:'Bananas', accessibilityLabel:'Eat Bananas', accessibilityValue:'Value1', accessibilityHint:'Double Tap to select Bananas'});
		data[1]=Ti.UI.createPickerRow({title:'Strawberries',accessibilityValue:'Value2', accessibilityLabel:'Eat Straeberry', accessibilityHint:'Double Tap to select Strawberry'});
		data[2]=Ti.UI.createPickerRow({title:'Mangos'});
		data[3]=Ti.UI.createPickerRow({title:'Grapes',accessibilityValue:'Value3', accessibilityLabel:'Eat Grapes', accessibilityHint:'Double Tap to select Grapes', accessibilityHidden:true});
		
		var picker2 = Ti.UI.createPicker({
		  top:100,
		  accessibilityLabel: "Picker2 label",
		  accessibilityValue: "Picker2 value",
		  accessibilityHint: "Picker2 hint",
		  useSpinner:true
		  
		});
		
		var picker3 = Ti.UI.createPicker({
		  top:300,
		  accessibilityHint: "Picker3 hint",
		  accessibilityLabel: "Picker3 label",
		  accessibilityValue: "Picker3 value"
		 
		});
		
		picker2.add(data);
		picker2.selectionIndicator = true;
		picker3.add(data);
		picker3.selectionIndicator = true;
		
		win.add(picker2);
		win.add(picker3);
         
win.open();

Comments

  1. Lee Morris 2017-07-18

    I am unable to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source