Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1072] Android Picker with column throws off index on device

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-04-23T04:53:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterJayme Fishman
AssigneeRitu Agrawal
Created2014-03-30T21:35:24.000+0000
Updated2016-03-08T07:37:25.000+0000

Description

***NOTE: updated as this is also the case when using multiple columns ... not just single columns as originally reported. *** Note: I will not be providing code to replicate this because it is very easy and occurs on the device - not the emulator - and there is a workaround: 1. Create a picker (useSpinner:true) 2. create a column 3. create a data array 4. iterate through array and call ti.ui.createPickerRow method. 5. add resultant object to column and add column to picker. Symptom: none for Android emulator - works fine. On device: the single column throws off index of values by 1. It creates an extra value. When a row is selected from the getSelectedRow it will always return the row above it and you cannot select the top-most row (also there appears to be a blank row a the bottom). This does not impact the picker in non-spinner mode. Work-around: add data directly to picker and DO NOT use a column. Note: This is also different from iOS in which it will work fine. It seems to be an Android only device level issue that does not impact the emulator.

Comments

  1. Ritu Agrawal 2014-04-06

    We need a simple runnable test case to reproduce this issue. I understand that you do not wish to provide a test case but we would have to close this ticket in absence of a test case.
  2. Ritu Agrawal 2014-04-23

    Resolving this ticket as we cannot reproduce this issue and reporter has not provided a test case.

JSON Source