Strange: event.index = 0 from native.showAlert()

We noticed in logs that a Nexus 7 owner managed to produce an event.index of 0 from a native.showAlert() dialog.

Is this a bug in Corona, or which widget/situation does the 0 correspond to?

Hi @olavm,

Can you show any code related to this? Did they specify when this occurs, i.e. after pressing a button? If so, which button in the dialog? Are you seeing this behavior on anything except Nexus7?

The code looks approximately like this:

[Lua]

local choices = {}

for i=1, 3 do

    choices[i] = "Choice " … i

end

choices[4] = “Cancel”

native.showAlert(“Hello”, “Pick your choice”, choices, onEvent)

[/Lua]

event.index was 0 inside the onEvent() function. We don’t know which button the user pressed. We don’t have physical access to the device for reproduction. We only have this one incident at the moment.

Hi @olavm,

Can you show any code related to this? Did they specify when this occurs, i.e. after pressing a button? If so, which button in the dialog? Are you seeing this behavior on anything except Nexus7?

The code looks approximately like this:

[Lua]

local choices = {}

for i=1, 3 do

    choices[i] = "Choice " … i

end

choices[4] = “Cancel”

native.showAlert(“Hello”, “Pick your choice”, choices, onEvent)

[/Lua]

event.index was 0 inside the onEvent() function. We don’t know which button the user pressed. We don’t have physical access to the device for reproduction. We only have this one incident at the moment.