Merge pull request #374 from neilsb/static-analyzer-issues

Fire "Application Loaded" beacon after getting list of libraries
This commit is contained in:
Anthony Lavado 2021-03-06 10:59:42 -05:00 committed by GitHub
commit 07977c20ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)