Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
stanislaw_busza
Binge Watcher

RowList - rowItemSelected field differs from rowItemFocused field (RowList bug?)

Hello, i am using RowList in my application and i discovered that sometimes rowItemFocused does not match rowItemSelected.

Here is my code:

 

sub init()
  ` (...)
  m.RowList = m.top.findNode("RowList")
  m.RowList.observeField("rowItemSelected", "onRowItemSelected")
  m.RowList.observeField("rowItemFocused", "onRowItemFocused")
  ` (...)
end sub

 

 

I 've added  prints to the observer function and it result in:
------------------------------------------------ onRowItemFocused <Component: roArray> =
[
3
0
]
------------------------------ onRowItemSelected <Component: roArray> =
[
0
0
]

So we see here that item was focused but after hitting OK on it (item is still focused, onRowItemFocused did not change!) we get onRowItemSelected signal with invalid values. What can i do ? What can be the reason ?

0 Kudos