Fire "Application Loaded" beacon after getting list of libraries and initial "Continue Watching" rows

This commit is contained in:
Neil Burrows 2021-02-17 16:45:19 +00:00
parent f7e3ee0fcf
commit c3343e2562

View File

@ -10,8 +10,6 @@ sub init()
m.top.rowLabelOffset = [0, 20]
m.top.showRowCounter = [true]
m.libariesToLoad = 0
updateSize()
m.top.setfocus(true)
@ -186,6 +184,13 @@ function updateNextUpItems()
end if
end if
' consider home screen loaded when above rows are loaded
if m.global.app_loaded = false then
m.top.signalBeacon("AppLaunchComplete") ' Roku Performance monitoring
m.global.app_loaded = true
end if
' create task nodes for "Latest In" rows
userConfig = m.top.userConfig
filteredLatest = filterNodeArray(m.libraryData, "id", userConfig.LatestItemsExcludes)
@ -201,7 +206,6 @@ function updateNextUpItems()
loadLatest.observeField("content", "updateLatestItems")
loadLatest.control = "RUN"
m.libariesToLoad += 1
end if
end for
end function
@ -258,12 +262,6 @@ function updateLatestItems(msg)
homeRows.replaceChild(row, rowIndex)
end if
end if
m.libariesToLoad -= 1
if m.libariesToLoad = 0 and m.global.app_loaded = false then
m.top.signalBeacon("AppLaunchComplete") ' Roku Performance monitoring
m.global.app_loaded = true
end if
end function
function getRowIndex(rowTitle as string)