Skip to content

Commit

Permalink
Merge pull request #20 from zype/index-refocusing
Browse files Browse the repository at this point in the history
Index refocusing
  • Loading branch information
andyzheng547 authored Jan 23, 2018
2 parents 184fed1 + 1b583fb commit 5e24fe5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### 1.5.9 (23/01/2017)

- Bug fix for invalid access tokens. Requests new access token when invalid/expired and keeps user signed in
- Update UX bug where app focuses wrong thumbnail when returning from player in Favorites, Search or My Library

### 1.5.8 (12/01/2017)

Expand Down
5 changes: 5 additions & 0 deletions components/screens/Favorites/Favorites.brs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ function onKeyEvent(key as String, press as Boolean) as Boolean
else if key = "back"
' if Details opened
if m.gridScreen.visible = false and m.detailsScreen.videoPlayerVisible = false then
itemFocused = m.top.itemFocused

m.detailsScreen.visible = false
m.gridScreen.setFocus(true)

m.gridScreen.jumpToRowItem = itemFocused

m.gridScreen.visible = true
m.top.isChildrensVisible = false
result = true
Expand Down
5 changes: 5 additions & 0 deletions components/screens/MyLibrary/MyLibrary.brs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,13 @@ function onKeyEvent(key as String, press as Boolean) as Boolean
else if key = "back"
' if Details opened
if m.gridScreen.visible = false and m.detailsScreen.videoPlayerVisible = false then
itemFocused = m.top.itemFocused

m.detailsScreen.visible = false
m.gridScreen.setFocus(true)

m.gridScreen.jumpToRowItem = itemFocused

m.gridScreen.visible = true
m.top.isChildrensVisible = false
result = true
Expand Down
4 changes: 4 additions & 0 deletions components/screens/Search/Search.brs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,13 @@ function onKeyEvent(key as String, press as Boolean) as Boolean
if key = "back"
' if HomeScene.Details opened
if m.gridScreen.visible = false and m.detailsScreen.videoPlayerVisible = false then
itemFocused = m.top.itemFocused

m.detailsScreen.visible = false
m.gridScreen.setFocus(true)

m.gridScreen.jumpToRowItem = itemFocused

m.gridScreen.visible = true
m.top.isChildrensVisible = false
result = true
Expand Down

0 comments on commit 5e24fe5

Please sign in to comment.