Skip to content

Commit

Permalink
fix bug on user select screen preventing the back button from working
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Sep 13, 2023
1 parent 14f5b9f commit 454de3b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions components/data/SceneManager.brs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import "pkg:/source/roku_modules/log/LogMixin.brs"
import "pkg:/source/utils/config.brs"
import "pkg:/source/utils/session.bs"

sub init()
m.log = log.Logger("SceneManager")
Expand Down Expand Up @@ -77,16 +79,22 @@ end sub
sub popScene()
group = m.groups.pop()
if group <> invalid
if group.isSubType("JFGroup")
groupType = group.subtype()
if groupType = "JFGroup"
unregisterOverhangData(group)
else if group.isSubType("JFVideo")
else if groupType = "JFVideo"
' Stop video to make sure app communicates stop playstate to server
group.control = "stop"
else if groupType = "UserSelect"
' user pressed back on the UserSelect screen and wants to select a server
' wipe the current server session data
session.server.Delete()
unset_setting("server")
end if

group.visible = false

if group.isSubType("JFScreen")
if groupType = "JFScreen"
group.callFunc("OnScreenHidden")
end if
else
Expand Down

0 comments on commit 454de3b

Please sign in to comment.